When a parent dies, the child custody order may be modified to give custody to the surviving parent, another relative, or a third party. Who will be granted custody depends on which parent passed away and their relationship to the other biological parent, as well as to the child.