The aim of the study was to gain an increased and in-depth understanding regarding the transfer of custody of children placed in the care of the community on the concept of the best interests of the child in a legal context. When a child lives in a family home and has lived there for more than three years, the social welfare board has an obligation to make an assessment of whether there should be a transfer of custody to the family home according to ch. 8 § FB (2006: 458). A sample of 14 judgments from the Court of Appeal and the District Court has been examined with the help of qualitative text analysis to gain an understanding of what the court considers important in its assessment of custody transfer. The study sheds light on the process of transfer of custody based on what the social welfare board and the biological parents present in court. Themes depicted in the study concern contact, parenting, attachment and security, the child's best interests and the child's will. In the analysis of the judgments, we can see that the court attaches great importance to how the interaction has worked during the time the child has been placed. This is assessed from both the social welfare board and the biological parents' perspective. Furthermore, a pattern in the appeals that the parents experience a problematic collaboration with the social welfare board regarding support during contact with the child during placement.