Social relationships are important aspects of the behavioural biology of pigs and can be affected by the type of housing pigs are kept in. Exploring agonistic interactions and affiliative behaviours can reveal effects on adult pigs and their descendants. This research investigated the social dynamics among gilts throughout pregnancy during collective feeding in an outdoor housing system and the effects of these dynamics on the stability of the group and the offspring of the group members. For this study, 15 gilts were oestrus synchronised and artificially inseminated with three different semen pools. The paddocks where the gilts were housed contained a mud pool, natural tree shade, and two nipple drinkers. Two daily meals (∼2.5 kg/day/gilt) were provided to the group on the floor. Feeding behaviour was recorded for three continuous days (20 min in the morning and again in the afternoon) every gestational (a total of 42 h of video recording). Saliva samples were collected at 6:00 a.m. and 6:00 p.m. on these same days. A trained observer evaluated all the videos using Boris software to determine agonistic and affiliative behaviours. After farrowing, the piglet data collected included sex, mortality, and body weight (BW) at 10, 25, 29, and 36 d of age. Elo scores were calculated to quantify the relative hierarchy among the gilts based on the behaviour assessment. Generalised linear mixed models (GLMMs) were used for data analyses, and the significance of fixed effects was determined at p < 0.05. The tendency of the gilts to feed together decreased as gestation progressed. Heavier gilts had lower salivary cortisol concentrations, and higher gilt rank was correlated with higher morning salivary cortisol concentrations and heavier piglets. Maternal modulation of offspring performance in pigs warrant further investigation. Assessment of gilts' social feeding behaviours is relevant for considering pigs' behaviour in genetic selection and improving commercial facilities and management practices to improve animal welfare.