After the condemnation of Freemasonry by Clement XII in 1738, Sultan Mahmud I followed suit outlawing the organization and since that time Freemasonry was equated with atheism in the Ottoman Empire and the broader Islamic world. The opposition in the Islamic world has been reinforced by the anticlerical and atheistic slant of the Grand Orient of France.
On July 15, 1978, the Islamic Jurisdictional College—one of the most influential entities that interpret Sharia, or Islamic law—issued an opinion that deemed Freemasonry to be “dangerous” and “clandestine”.
After World War I, while under the British Mandate, Iraq used to have several lodges. This all changed with the 14 July Revolution in 1958, however, with the abolition of the Hashemite Monarchy and Iraq’s declaration as a republic. The licences permitting lodges to meet were rescinded, and later, laws were introduced banning any further meetings. This position was later reinforced under Saddam Hussein the death penalty was “prescribed” for those who “promote or acclaim Zionist principles, including Freemasonry, or who associate [themselves] with Zionist organizations”.
Freemasonry is illegal in all Arab countries except Lebanon and Morocco and the current Grand Lodge in Turkey.
(the source: Wikipedia)