Schelling was born in the town of Leonberg in the Duchy of Württemberg (now Baden-Württemberg), the son of Joseph Friedrich Schelling and his wife Gottliebin Marie. He attended the monastic school at Bebenhausen, near Tübingen, where his father was chaplain and an Orientalist professor. From 1783 to 1784 Schelling attended a Latin school in Nürtingen and knew Friedrich Hölderlin, who was five years his senior. On 18 October 1790, at the age of 15, he was granted permission to enroll at the Tübinger Stift (seminary of the Evangelical-Lutheran Church in Württemberg), despite not having yet reached the normal enrollment age of 20. At the Stift, he shared a room with Hegel as well as Hölderlin, and the three became good friends.