IntroductionThis study aims to assess students' knowledge of forensic medicine concepts and their opinions regarding the course taught during the degree course in Medicine and Surgery in an Italian university. Consequently, the study aims to assess the impact of the course on the students’ knowledge and attitude in choosing a medical residency. Materials and methodsA cross-sectional study was conducted through an anonymous web-based survey of medical students at the Università Cattolica del Sacro Cuore. Descriptive and univariate analysis were conducted. Results1166 students completed the survey. The forensic medicine course appears to be extremely important in providing training in the fundamental concepts of forensic medicine, especially professional liability, defensive medicine, and forensic pathology. Attending autopsies is important during the course, and their number should be more than ten. Additionally, univariate analysis demonstrates that students' awareness of forensic medicine topics, such as the function of the forensic physicians, professional liability, and defensive medicine, improves in the fifth or sixth year of the course. After the course, more students would choose to pursue a nonclinical and nonsurgical specialty, and forensic medicine specifically, for their residency. ConclusionsThe forensic medicine course has the task of defining the duties and responsibilities of forensic physicians, providing indispensable tools for future medical practitioners, regardless of their future specialisation, and limiting the increasing use of defensive medicine. In conclusion, we recommend further multicenter studies to evaluate the role and direct effect of undergraduate forensic medicine courses on students and on the quality of practice.