Relevant contents of custody of children born out of wedlock:
1. In the history of priority guardianship of birth mothers, the right of guardianship of children born out of wedlock has long belonged to the birth mothers. On the one hand, the underdevelopment of science and technology makes it difficult to infer the father of children born out of wedlock; On the other hand, traditional social and moral concepts believe that the father of illegitimate children should not assume the right and obligation of guardianship. It can be seen that the legislation, based on the principle of gender discrimination against the parents of children born out of wedlock and gender inequality, grants the custody of children born out of wedlock to their biological mothers.
2. Generally speaking, the joint guardianship of parents is the most beneficial to the healthy growth of minor children. From the best interests of children, the best type of guardianship is the joint custody of illegitimate children by parents. However, the realization of joint guardianship depends on whether the parents live together. If the parents of illegitimate children live together, the protection of illegitimate children is feasible.