Originally owned by a number of possessors, until the first half of the 12th century, the territory south of the Sava where the town of Ljubljana developed gradually became property of the Carinthian family of the Dukes of Sponheim. Urban settlement in Ljubljana started in the second half of the 12th century. At around 1200, market rights were granted to Old Square (), which at the time was one of the three districts that Ljubljana originated from. The other two districts were an area called "Town" (), built around the predecessor of the present-day Ljubljana Cathedral at one side of the Ljubljanica River, and New Square () at the other side. The Franciscan Bridge, a predecessor of the present-day Triple Bridge, and the Butchers' Bridge connected the walled areas with wood-made buildings. Ljubljana acquired the town privileges at some time between 1220 and 1243. Seven fires erupted in the town during the Middle Ages. Artisans organised themselves into guilds. The Teutonic Knights, the Conventual Franciscans, and the Franciscans settled in the town. In 1256, when the Carinthian duke Ulrich III of Spanheim became lord of Carniola, the provincial capital was moved from Kamnik to Ljubljana.