Farm animals can form preferential associations within their social group. Research has shown that the presence of familiar conspecifics can help to cope with stressful situations. Nonetheless, whether the strength of the relationship matters is largely unknown. Our aim was to investigate the influence of the strength of the social relationship between familiar partners during a stressful event. Pigs (n = 116) were observed pre-weaning for their social interactions and spatial proximity with littermates. From this, preferential associations were calculated based on sociality indices of non-agonistic social behaviours (SIsoc) and spatial proximity (SIprox). Pigs were weaned into groups of unfamiliar pigs together with one littermate. The partner was selected based on the strength of their relationship pre-weaning, with pairs from across the SIsoc and SIprox distribution. SIprox and non-agonistic social behaviour (SIsoc) were included in the statistical analysis as measures of relationship strength. Focal pigs were observed postweaning for their social behaviour and spatial proximity, skin lesions and growth, and salivary cortisol concentration pre-weaning and at 4 h and 48 h postweaning. The strength of the social relationship pre-weaning did not significantly influence the behaviour or proximity towards the familiar partner postweaning, or the amount of skin lesions or weight gain. Pigs who were weaned with a littermate with whom they were strongly affiliated based on active social behaviour (SIsoc) tended to have a lower proportional increase in their cortisol concentration after weaning (P = 0.07). Pigs differed in their behaviour towards the familiar partner as compared to the unfamiliar pigs, by directing more aggression towards unfamiliar pigs (P