Dengue fever is a public health concern worldwide. People's attitudes, knowledge, and practices have implications for DF prevention and control. DF caused by Aedes aegypti and Aedes albopictus, which are endemic in certain cities of Saudi Arabia, such as Jeddah and Makkah. The aim of study was to determine the knowledge, attitudes, and practices of male medical students from various specializations in the second, third and fourth year with an average age of 18 to 25 years at Umm Al -Qura University, Makkah a large town in KSA in relation to DF prevention. This cross-sectional descriptive study was based on students' responses to an online, self-reported Knowledge, Attitude, and Practices (KAP) research survey. In total, 384 students completed the survey. The data were analyzed using SPSS test. The KAP had been measured by carried out using a scoring system and determined as good or bad depend on 80%cut-off point. A statistical analysis method to predict a binary outcome, such as good or bad, was used to examine the associated factors, in quantitative analysis. A value of p < 0.005 considered as significant of statistical. The results showed a significant correlation between knowledge on prevention of DF and infected students with the disease (p < 0.001). They also showed that student practices were significantly associated with student infection rates (p < 0.010). Moreover, the findings revealed a highly significant association between the specializations of the students and their knowledge, attitudes, and practices in relation to DF prevention (p < 0.000 for all). Our study found a strong significant correlation between the specializations of the students and their knowledge, attitudes, and practices in relation to DF prevention (p < 0.000 for all). The addition of an infectious disease study program to the university's medical specialization curriculum is be recommended, as well as research and development on educational strategies and effective measures to improve students' behaviors and practices in relation to DF prevention.