Sean Gallup/Getty Images Munich beer hall ordered to host AfD event Owner of venue where Hitler gave first speech told it cannot break contract with far-right party.

A German court on Thursday ordered the Munich beer hall where Adolf Hitler gave his first political speech to host an event by the far-right Alternative for Germany (AfD) party.

AfD party leader Frauke Petry was booked to speak at the Hofbräukeller on Friday, with hundreds of supporters expected to attend.

But the beer hall canceled the booking after the party backed a policy that Islam "does not belong in Germany." The hall's landlord, Ricky Steinberg, said he feared protests and believed he was allowed to call off the event because of security concerns.

The AfD disagreed and took the issue to court, claiming it had already paid out a deposit of more than €6,000. A Munich district court agreed with the AfD and ordered the event to go ahead, saying that the beer hall was tied to the contract.

The Hofbräukeller has hosted political meetings by parties from all sides, including Angela Merkel's Christian Democrats, according to the BBC. Hitler gave his first political speech at the venue in September 1919.

Though barely three years old, the AfD has risen to 13 percent approval in nationwide opinion polls, making it the third strongest party in Germany after Merkel’s conservatives and their Social Democrat coalition partners.

At a party congress on May 1, the party agreed to include in its manifesto the sentence “Islam does not belong in Germany,” as well as a commitment to seek a ban on Muslim women wearing the full veil.