The German education system consists of preschool, primary, secondary, and tertiary education. Full-time schooling is compulsory at primary and secondary levels for all children aged six to 15. However, German education generally lasts until the age of 18. The state runs most German schools and they are free to attend