Historically the first school in Ljubljana belonged to Teutonic Knights and was established in the 13th century. It originally accepted only boys; girls were accepted from the beginning of the 16th century. Parochial schools are attested in the 13th century, at St. Peter's Church and at Saint Nicholas's Church, the later Ljubljana Cathedral. Since 1291, there were also trade-oriented private schools in Ljubljana. In the beginning of the 17th century, there were six schools in Ljubljana and later three. A girls' school was established by Poor Clares, followed in 1703 by the Ursulines. Their school was for about 170 years the only public girls' school in Carniola. These schools were mainly private or established by the city.