Custody means when someone takes care of you and keeps you safe.
For example, when you go to school, your teacher is in custody of you. They make sure you learn and stay safe.