Process in which a cell, a substance, or a cellular entity is transported, tethered to or otherwise maintained in a specific location; for substances, may also be achieved via selective degradation.