The Spanish education system has three main stages: pre-school from ages 0-6, primary school from ages 6-12, and secondary school from ages 12-16. Pre-school is not mandatory, primary school lasts 6 years and covers ages 6-12, and secondary school offers both academic and applied/technical tracks lasting 4 years.