delivered the opinion of the court:
This is a contest between the mother (petitioner) and father (respondent) over custody of a child born on November 7, 1973, out of wedlock. "The mother, assuming that she and the father would be married, recorded the birth certificate with the father’s name. Both he and the mother acknowledge his paternity. When the child was bom, the mother, a resident of Chicago, but a student at a State university outside the Chicago area, was unable to care for the baby while pursuing her education. There was evidence that the father and his mother (also a respondent) urged the petitioner to leave the baby with them in Chicago while she continued her college studies. In any event, the respondents, without objection from the petitioner, cared for the baby in their home from a few days after his birth until he was approximately a year old. During that interval the mother visited the baby frequently and contributed approximately *100 to his support.
In the fall of 1974, when the child was approximately a year old, the mother, while visiting her son, took him to her sister’s home and decided to keep him permanently. The respondents pursued her, and after some words and threats regained possession of the child. The baby has continued to reside with the respondents. The mother filed a petition for a writ of habeas corpus in June 1975, seeking to adjudicate the propriety of the baby’s custody by the respondents. After several hearings at which evidence was received, the circuit court judge stated that he was unable to resolve which parent was better fitted to have the care and custody of the child. The judge then entered an order denying the petition for a writ of habeas corpus without making a determination as to what was in the best interest of the child. The order contained findings that the mother and father each had demonstrated a legal interest in the child and that neither of them was unfit, and it reserved visitation rights for the mother 1 day a week away from the father’s home. Apparently, the trial judge’s reasoning was that because the father had a legal right to the child which he had not forfeited by any improper conduct, the court lacked authority in a habeas corpus proceeding to change the custody of the child.
The petitioner appeals from the denial of her petition. Her first contention is that as a matter of law, if the mother of a child born out of wedlock is not judicially determined to be unfit, she has a right to custody superior to the natural father. The same argument was rejected in People ex rel. Irby v. Dubois (1976),
The petitioner also argues that she was deprived of equal protection of the law because no understandable and appropriate forum existed for adjudicating whether she or the father should have custody of their child. If the parties were married and a divorce action was pending, the circuit court would have had authority under section 13 of the Divorce Act (Ill. Rev. Stat. 1975, ch. 40, par. 14) to determine the custody and care of minor children of the parties. The authority granted by that Act even has been stretched to permit a determination of the custody and care of children conceived by and born to parents after they have been divorced. (See Vanderlaan v. Vanderlaan (1972),
In the absence of legislation establishing a procedure for resolving a dispute over custody of a child between parents who never have been married, society requires that the law shape an appropriate forum. The alternative is self-help, a solution not countenanced by this court because it serves the best interests of neither the child nor the parents. A court adjudicating a dispute between parents over custody of a legitimate child would be guided by what is in the best interest of the child and would best promote its welfare. (Marcus v. Marcus (1974),
There are several reported Illinois cases in which reviewing cotuts have found a habeas corpus proceeding suitable for determining what is in a child’s best interest and awarding custody on that basis. (People ex rel. Strand v. Harnetiaux (1970),
The circuit court’s order denying a writ of habeas corpus is reversed and remanded with directions to the circuit court to receive whatever additional evidence the parties may desire to offer, and to award custody based on the best interest of the child in the same manner it would in the case of married parents. The circuit court should also consider such orders for support of the child as may be appropriate, and visitation rights for the parent to whom custody is not awarded.
Reversed and remanded with directions.
JIGANTI and McGILLICUDDY, JJ., concur.
