Mexico’s Educación Básica spans 12 mandatory years:
After completing these 12 years (typically around age 15–16), students may continue to upper secondary (preparatoria) or higher education, which are optional.