Conspiracy theorists are saying the attempted military coup in Turkey was faked, after President Recep Tayyip Erdogan reportedly called it “a gift from Allah”.

Social media users have compared the coup attempt in which more than 160 people are thought to have died to the Reichstag fire – the 1933 arson attack on the German parliament building which Hitler used as an excuse to suspend civil liberties and order mass arrests of his opponents.

President Erdogan reportedly told supporters at Istanbul’s international airport that the coup attempt was the work of the movement led by the exiled preacher Fethullah Gulen, which he denounced as “an armed terrorist organisation”.

He was quoted as calling the attempted coup "a gift from God," reportedly saying it would help cleanse the military of "members of the gang” who would “pay a heavy price for their treason”.

This immediately led many to fear that President Erdogan, who has previously been accused of persecuting critics, will use the coup as an excuse to further crack down on his opponents. Such fears are likely to be stoked by Turkish TV reports that 2,745 judges have been removed from their offices following the coup attempt.

Some observers have even begun specualting that the coup was stage-managed to give Mr Erdogan an opportunity to purge the military of opponents and increase his grip on Turkey.

Erdogan: Turkey coup bid 'an act of treason'

Ryan Heath, the senior EU correspondent at Politico, used Twitter to share comments from his “Turkish source”, who called the events of Friday night a “fake coup” which would help a “fake democracy warrior” [Erdogan].

The source said: “Probably we’ll see an early election [in] which he’ll try to guarantee an unbelievable majority of the votes. And this will probably guarantee another 10-15 years of authoritarian, elected dictatorship.

“We’ll possibly see a change in the constitution for worse, which secularism will be gone and Islamist motifs will be in!”

Using the hashtag #TheatreNotCoup, a Twitter user calling himself Subsidiarity Man wrote: “Two words: Reichstag fire. The year was 1933 and you know what happened next.”

Another Twitter user quoted “my special friend in Istanbul” as calling what happened: “Most probably a real coup attempt, which was vaguely known beforehand, and was allowed to proceed, because they knew it to be disorganised and weak.

“This means it will be followed by a real coup by Erdogan himself, and the last remnants of democracy will be lost.”

In pictures: Turkey coup attempt Show all 17 1 /17 In pictures: Turkey coup attempt In pictures: Turkey coup attempt Turkish President Erdogan attends the funeral service for victims of the thwarted coup in Istanbul at Fatih mosque on July 17, 2016 in Istanbul, Turkey Burak Kara/Getty Images In pictures: Turkey coup attempt Soldiers involved in the coup attempt surrender on Bosphorus bridge with their hands raised in Istanbul on 16 July, 2016 Gokhan Tan/Getty In pictures: Turkey coup attempt A civilian beats a soldier after troops involved in the coup surrendered on the Bosphorus Bridge in Istanbul, Turkey, 16 July, 2016 REUTERS/Murad Sezer In pictures: Turkey coup attempt Surrendered Turkish soldiers who were involved in the coup are beaten by a civilian Reuters In pictures: Turkey coup attempt Soliders involved in the coup attempt surrender on Bosphorus bridge Getty In pictures: Turkey coup attempt Supporters of Turkish President Recep Tayyip Erdogan wave flags as they capture a Turkish Army vehicle Getty In pictures: Turkey coup attempt People pose near a tank after troops involved in the coup surrendered on the Bosphorus Bridge in Istanbul, Turkey, 16 July, 2016 Reuters In pictures: Turkey coup attempt Turkish soldiers block Istanbul's Bosphorus Brigde Getty In pictures: Turkey coup attempt A Turkish military stands guard near the Taksim Square in Istanbul Reuters In pictures: Turkey coup attempt Pierre Crom/Twitter In pictures: Turkey coup attempt Turkish soldiers secure the area as supporters of Recep Tayyip Erdogan protest in Istanbul's Taksim square AP In pictures: Turkey coup attempt People demonstrate in front of the Republic Monument at the Taksim Square in Istanbul Murad Sezer/Reuters In pictures: Turkey coup attempt Turkish soldiers detain police officers during a security shutdown of the Bosphorus Bridge Reuters In pictures: Turkey coup attempt Turkish Army armoured personnel carriers in the main streets of Istanbul Getty In pictures: Turkey coup attempt Chaos reigned in Istanbul as tanks drove through the streets EPA/TOLGA BOZOGLU In pictures: Turkey coup attempt Turkish President Tayyip Erdogan speaks to media in the resort town of Marmaris Reuters In pictures: Turkey coup attempt Supporters of President Erdogan celebrate in Ankara following the suppression of the attempted coup Reuters

In a reference to the history of Nazi Germany, the friend added: “A civilian brown-shirt movement is already in the making, and this will rule the streets once the so-called coup is defeated in a couple of days.”

The Gulen movement, also known as Hizmet and led by the US-based moderate Islamic cleric Fethullah Gulen, has rejected Mr Erdogan’s accusations and denied any involvement in the coup.

The group, which presses for a moderate version of Sunni Islam that emphasises interfaith dialogue, has regularly accused President Erdogan of harassing and unfairly arresting its supporters.

Before the attempted coup, there had also been extensive international criticism of Mr Erdogan’s human rights record, especially his growing repression of the media.

It has been reported that since 2014 1,845 journalists, writers and critics have faced charges of insulting the president, an offence which in Turkey carries a potential jail sentence.

President Erdogan faced particular scrutiny earlier this year after he demanded a criminal prosecution of the German satirist Jan Böhmermann who used profane language to insult him on television.

This prompted the British right-wing magazine The Spectator to run a President Erdogan Offensive Poetry competition – won by the then former London mayor, now Foreign Secretary Boris Johnson, with a limerick suggesting the Turkish president had enjoyed sexual congress with a goat.

It read:

There was a young fellow from Ankara

Who was a terrific wankerer

Till he sowed his wild oats

With the help of a goat

But he didn’t even stop to thankera.