Muslims came to Germany as a part of the diplomatic, military and economic relations between Germany and the Ottoman Empire in the 18th century. In 1798 a Muslim cemetery was established in Berlin. The cemetery, which moved in 1866, still exists today. In World War I about 15,000 Muslim prisoners of war were interned in Wünsdorf. The first mosque was established in Wünsdorf in 1915 for these prisoners, though it was closed in 1930. After the war, a small number of Muslims stayed in Berlin. Imam Maulana Sadr ad-Din worked as a first missionary of the Lahore Branch of the Ahmadiyya Movement in Berlin from 1922. Their Wilmersdorfer Moschee designed by K. A. Kermann was built between 1924 and 1928. The rise of Nazism in the country did not specifically target Muslims at all, but German Muslims lived in an atmosphere of suspicion as a religious minority and were subjected to xenophobia and racism as „ non-Aryans“.