Detention is the process whereby a state or private citizen lawfully holds a person by removing their freedom or liberty at that time.
A temporary state of custody or confinement, especially of a prisoner awaiting trial.