PurposeDrawing on social cognitive career theory (SCCT), this study aims to examine how university students’ attitude towards entrepreneurship education (ATEE) consists of affective, cognitive and behavioral components influences their entrepreneurial intentions. It further examines the role of entrepreneurial self-efficacy (ESE) as a mediator and social norms as a moderator in the ATEE – entrepreneurial intentions and – ESE relationships, respectively.Design/methodology/approachA sample of 428 university students from the new generational cohort entering workforce now (i.e. generation Z) from the four main cities of the province of Punjab, Pakistan, were considered using an online administered questionnaire. The study analyzes data using SPSS v25 and AMOS v22 and presents descriptive statistics, reliability, validity analysis and linear regression analysis. Furthermore, to test mediation and moderation hypotheses, Hayes’ PROCESS macro v3.0 was used.FindingsThe results confirm that individuals’ ATEE based on affective, cognitive and behavioral components have significant influence on entrepreneurial intentions. The findings also confirm the strong mediating role of ESE between the components of ATEE and entrepreneurial intentions. Furthermore, the conditional effects results confirm that social norms strengthened the positive relationships between the affective, behavioral and cognitive components of ATEE – ESE at three levels (low, medium and high).Originality/valueThis study is the first of its nature to unlock the missing link between ATEE’s components and entrepreneurial intentions using the theoretical foundations of SCCT. Furthermore, this study provides theoretical and practical implications specifically considering a developing country – Pakistan.