What is the meaning of Protective_custody?

Lawful confinement of a person or close supervision of his or her movements, on a voluntary or involuntary basis, by authorities in order to safeguard that person from attack or other dangers.

Source: wiktionary.org