The role of the guardian ad litem is to represent the child in divorce or custody proceedings. Many times, the needs of a child are ignored or take a back seat to personal struggles between the parents. The guardian offers a new and objective perspective in the case. A guardian is appointed by the court to act as a representative for children in contested custody proceedings.