(uncountable) The act of detaining or the state of being detained.
(countable) A temporary state of custody or confinement, often used as a punishment for minor infractions in the context of education or as confinement for prisoners awaiting trial in the context of law.
(civil law) The bare physical control without the mental element of intention required for possession.