After the Ottoman conquest of Bosnia in the 15th century, much of the local population converted to Islam. The town quickly grew into one of the more important settlements in the region, as authorities constructed mosques, marketplaces, and various infrastructure. During 1699 when Sarajevo was set afire by soldiers of Field-Marshal Prince Eugene of Savoy, Travnik became the capital of the Ottoman province of Bosnia and residence of the Bosnian viziers. The town became an important center of government in the whole Western frontier of the empire, and consulates were established by the governments of France and Austria-Hungary.