The German term Volksschule generally refers to compulsory education, denoting an educational institution every person (i.e. the people, Volk) is required to attend.
In Germany and Switzerland it is equivalent to a combined primary (Grundschule and Primarschule, respectively) and lower secondary education (Hauptschule or Sekundarschule), usually comprising a mandatory attendance over a period of nine years. In Austria, Volksschule solely is used for primary school from Year One to Year Four. In the Nordic countries they are referred to as Folkskolen and in Finnish, in a direct translation, as Kansakoulu; these schools covered the first years of primary education, from the ages of 7 to 11 or 12.
In mediæval times, church schools were established in the Holy Roman Empire to educate the future members of the clergy, as stipulated by the 1215 Fourth Council of the Lateran, later adopted by the sunday schools of the Protestant Reformation. First secular schools followed during the pietism movement from the late 17th century onwards and were further promoted by the advocates of the Enlightenment. In 1717 King Frederick William I of Prussia decreed the compulsory education of children from the age of five to twelve. They had to be able to read and write and were obliged to memorise the Protestant catechism. In 1763 King Frederick the Great enacted a first Prussian general school law, elaborated by the theologian Johann Julius Hecker.