Abstract Introduction It is widely acknowledged that normal endothelial function plays a pivotal role in conferring cardioprotective effects against ischemia-reperfusion injury following acute myocardial infarction (AMI) treated by a primary percutaneous coronary intervention (PCI), thereby limiting infarct size (1). However, endothelial dysfunction (ED) has been extensively documented in patients with cardiovascular (CV) risk factors (2). This study proposes a novel perspective, positing that ED could be intricately linked not only with traditional CV risk factors, but also it can be associated with poor sleep quality. Consequently, this interplay might significantly contribute to the attenuation of exercise capacity. Objective The aim of this study was to assess endothelial function following AMI treated with a PCI and investigate the link between endothelial function, CV risk factors, sleep quality and exercise capacity. Furthermore, the study aimed to determine if endothelial function could serve as a predictive factor for future major adverse acute cardiac events (MAACE) following AMI. Materials and methods Sixty-three patients with AMI (56.21 ± 7.6 years) volunteered to participate in this study, . Endothelial function was assessed using the Endothelium Quality Index (EQI) . Sleep quality was evaluated using both actigraphy and the PSQI (Pittsburgh Sleep Quality Index) questionnaire. Exercise capacity was quantified through the 6-minute walking test (6mwt). Results ED was evident, as indicated by an EQI of 1.4 ± 0.7. Furthermore, ED was notably influenced by CV risk factors such as low physical activity level, age, and smoking. A significant correlation was found between EQI and both sleep efficiency (r = 0.340; p = 0.006) and PSQI score (r = -0.533; p < 0.001). Additionally, a strong association was observed between endothelial function and the results of the 6mwt (r = 0.291; p = 0.021). Furthermore, during a follow up period ( near 4 months) following PCI, MAACE were observed in patients with severe ED only. Conclusion In summary, findings of this study may emphasize the importance of enhancing sleep quality and advocating for an active lifestyle as modifiable elements to enhance endothelial function, which can be regarded as a prognostic tool subsequent to AMI, ultimately contributing to improved clinical outcomes. Moreover, this study concluded that AMI patients with severe endothelial dysfunction were more likely to develop MAACE.Endothelial Dysfunction after AMIED following AMI : Causes and effect