protective arrest; protective custody
Legal term for detaining someone for their own safety or to prevent harm, rather than as punishment.
The police took the drunk person into protective custody.
Protective arrest is a measure to prevent danger to the person or others.