protective custody

Definition from Nolo’s Plain-English Law Dictionary

The confinement of a person by the government, when the authorities think it's necessary for that person's own security or well-being. A witness who is being threatened may be placed in protective custody, as may a child or other person who may harm others.

Definition provided by Nolo’s Plain-English Law Dictionary.