Tatars destroyed Romanesque cathedral in Zagreb during their scourge in 1240, but right after their departure, Zagreb received the title of Free City (Freistadt Zagreb) from King Béla IV. Soon after bishop Timotej began to rebuild the cathedral in new Gothic style. Building with three naves, polygonal apses and rib-vault had Romanesque round towers. The naves were built in the 14th century, and the vault was finished in the 15th. With the arrival of Turks in the 16th century, high walls and towers surrounded it. Only one tower was finished in the 17th century, while in the 18th the Baroque roof became the landmark of the entire city. With the restoration in the 19th century in Neo-Gothic style it lost its former harmony.