School environment is associated with ego strength and hostility, while perceived parenting modifies the relationship between ego strength and hostility. School Connectedness Scale, The Strategy and Attribution Questionnaire, The Parental Bonding Inventory, Barron’s Ego Strength Scale, and The Buss-Durkee Hostility Inventory were used for assessing school environment, students' achievement strategies, perceived parenting, ego strength, and hostility. A structural equational model was administered to investigate the mediation effect of perceived parenting. The findings indicated that school environment was significantly associated with ego strength B = 0.28, p< 0.001, and hostility B = 0.34, p< 0.001. Perceived parenting mediates the relationship between ego strength B = 0.375, p< 0.001, and hostility B = 0.136, p< 0.05. Perceived parenting plays a crucial role in student achievement strategies and developing an impactful ego strength and helps reduce hostile behaviors while positive parenting modifies the association of ego strength and hostility in the school environment.