In 1740 the town was captured and briefly held by the Prussians. Olomouc was fortified by Maria Theresa during the wars with Frederick the Great, who besieged the city unsuccessfully for seven weeks in 1758. In 1848 Olomouc was the scene of the emperor Ferdinand's abdication. Two years later, Austrian and German statesmen held a conference here called the Punctation of Olmütz. At the conference, they agreed to restore the German Confederation and Prussia accepted leadership by the Austrians.