Spain
The closest equivalent to the eleventh grade is the first year of post-obligatory school, called "Bachillerato". It is not mandatory and it lasts two years between 16 and 18. It is a preparatory period during which students prepare to take the university entrance exam (Prueba de Acceso a la Universidad, PAU) and to go to university.
Read more about this topic: Eleventh Grade