Custody is when police hold you so you can’t leave. This is usually in prison while you wait to go to court.

(Modified from the Plain English Legal Dictionary 2015)