•Attachment type is associated with the quality of peer relationships in childhood: securely attached infants go on to form the best quality friendships while insecurely attached infants struggle and have friendship difficulties.•Securely attached children were rated highest for social competence later in childhood, were less isolated, more popular and more empathetic.