However, even as a residence for a Bishop, the Meersburg was the site of several battles over the following centuries. In 1334, there were two candidates for the position of Bishop of Constance. Baron Nikolaus I of Kenzingen was elected Bishop by supporters of the Pope while Albrecht of Hohenberg was chosen by the Holy Roman Emperor. Nikolaus quickly traveled to Avignon, in France the seat of Pope John XXII to have his appointment confirmed. He then returned to Meersburg and quickly had the defenses improved. Albrecht, meanwhile, had raised an army from the southern German princes and was joined by an Imperial army led by the Emperor. During the summer of 1334, the Imperial army besieged Burg Meersburg. During the siege, cannons were used for the first time in Germany.[8] However, even with the new gunpowder weapons the Imperial troops were unable to take the castle. At the end of August, Emperor Louis IV was growing tired of the siege. When Duke Otto of Austria requested his help against the Bohemians, Louis left Meersburg and confirmed Nikolaus as Bishop. Albrecht was granted the Bishopric of Würzburg in 1345 to replace the lost Bishopric.[8]