Introduction: Early life experiences could be potential risk factors for the development of alcohol use disorder. In similar circumstances, it might also influence cognitive impairment in later life. However, the relationship between early life experience and cognitive function in people with alcohol use disorders is unclear. The current study examined the effects of early social environments and experiences on cognitive function in patients with alcohol use disorder. Methods: A total of 37 adult male patients with alcohol use disorder and 30 healthy control (HC) subjects were enrolled. The MATRICS Cognitive Consensus Battery (MCCB) was used to evaluate cognitive function. The Childhood Trauma Questionnaire (CTQ) and the Revised Adult Attachment Scale (RAAS) were used to evaluate early life experiences of the participants. The RAAS was used to evaluate the attachment patterns of participants. Results: Compared with the HC group, the alcohol use disorder group reported higher levels of childhood abuse and were more likely to form an insecure attachment style. Patients with alcohol use disorder who experienced trauma performed worse in terms of discrete cognitive parameters such as social cognition, reasoning and problem solving compared to patients without trauma. Importantly, emotional neglect and social comfort were significantly associated with individual social cognitive skills. Conclusions: Our results suggest that the cognitive function of patients with alcohol use disorder, especially social cognitive function, is affected by early life experiences.