gaol has definitions from the field of law
1
[ verb ] lock up or confine, in or as in a jail

Examples

"The suspects were imprisoned without trial" "the murderer was incarcerated for the rest of his life"

2
[ noun ] (law) a correctional institution used to detain persons who are in the lawful custody of the government (either accused persons awaiting trial or convicted persons serving a sentence)
*