During the Ottoman invasion the Muslims of Albania were divided into two main communities: those associated with Sunni Islam and those associated with Bektashi Shiism, a mystical Dervish order that came to Albania through the Albanian Janissaries that served in the Ottoman army and whose members practiced Albanian pagan rites under a nominal Islamic cover. After the Bektashis were banned in Turkey in 1925 by Atatürk, the order moved its headquarters to Tirana and the Albanian government subsequently recognized it as a body independent from Sunnism. Sunni Muslims were estimated to represent approximately 50% of the country's population before 1939, while Bektashi represented another 20%. There is also a relatively small minority which belongs to the Ahmadiyya Muslim Community. Muslim populations have been particularly strong in eastern and northern Albania and among Albanians living in Kosovo and Macedonia.