Custody law is a division of law which deals with the custody of a child in cases where the parents separate, there is a death, or some other reason in which there is a question of who retains guardianship over the child. Types of custody include physical, legal, sole, and joint custody.