In the current global context, characterized by increasing competitiveness and dynamism, entrepreneurship has emerged as a fundamental driver of economic development and job creation. This study aims to compare the levels of entrepreneurial competence and intention among fifth-year high school students in Chepén and Pacasmayo, Peru, as well as to identify the key entrepreneurial competencies that significantly influence entrepreneurial intention. Additionally, it seeks to examine the moderating roles of self-assessed entrepreneurial capabilities and perceived risk in starting a business on the relationship between competencies and entrepreneurial intention. Additionally, it seeks to examine the moderating role of self-assessment of entrepreneurial capabilities and the perception of risk in starting a business in the relationship between competencies and entrepreneurial intention. The study is based on Ajzen’s theory of planned behavior. The sample included 305 students, divided between 205 from Chepén and 100 from Pacasmayo, who participated in a structured survey. The results of the structural equation modeling (SEM) analysis revealed that creativity, risk-taking, and initiative significantly influence students’ entrepreneurial intentions. However, competencies such as problem solving, networking, achievement orientation, teamwork, and autonomy did not show significant relationships with entrepreneurial intention. Moreover, neither the self-assessment of entrepreneurial capability nor the perception of the risk of starting a business had significant moderating effects on the relationship between entrepreneurial competence and intention. The discussion highlights that these findings contribute to understanding the psychological mechanisms underlying the formation of entrepreneurial intentions among high school students and offer valuable guidance for designing educational programs that enhance key entrepreneurial competencies. In conclusion, this study represents a significant advancement in comprehending the role of entrepreneurial competencies in shaping entrepreneurial intentions among secondary school students and opens new avenues for future research in this field.