Unlike in marriage, paternity to a child whose parents are cohabiting needs to be affirmed. When the child is born, the mother gets custody of the child but the father can confirm his paternity in writing with two witnesses (to be approved by the local Social agency (Sw. socialnämnden) and by the mother or a specially appointed caregiver of the child). [To include text on adoption, new rules 2019].