Answer :

Someone who rules for a child until he is old enough to rule is called a "Regent". A regent is the head of state who is in temporary control because the permanent Monarch is too young or incapable of ruling. 
A regent is someone who rules for a child until the child is old enough to rule.