Aim. To determine the prevalence and the factors associated with the publication of scientifi c articles in medical residents of Peru. Subjects and methods. Cross-sectional analytical study using the data obtained by the National Survey for Resident Physicians 2016 (ENMERE-2016), carried out virtually during June 2016. Population: physicians who live in a university in Peru. Sample: residents who voluntarily participated in ENMERE-2016. Outcome of interest: have published at least one scientifi c article. Sociodemographic variables were collected, from the university, from the headquarters, from the residence, from the resident's perception, and from depressive symptoms. To evaluate the factors associated with having published a scientifi c article, crude and adjusted prevalence ratios were calculated with their 95% confi dence intervals. Results. Data from 1062 residents (42.2% female) were analyzed, of which 118 (11.1%) published some scientifi c paper during the resident. In the adjusted analysis, to study the superior years of residency, to have performed some external rotation outside the country and to have a higher score in the overall opinion of the training process were variables directly associated with having published some scientifi c article. While the female sex, being over 35 years old and presenting with depressive symptoms were variables inversely associated with this outcome. Conclusion. Approximately one in ten residents published a scientifi c article during the residency. This was less prevalent in women, in older residents, in those who were in lower years of residence, in those who did not perform any rotation outside the country, in those who had a worse opinion of the training process, and in those with depressive symptoms.