to officially prevent someone from leaving a place, especially by keeping them in prison or at a police station
“The police detained several suspects for questioning.”