Germany's AfD party has raised the prospect of 'Dexit', saying it will back withdrawal from the EU if Brussels does not combat the 'Islamisation' of the continent.

A party manifesto released ahead of the European Parliament elections in May said Islam was a 'danger to Europe'.

The AfD, which has risen to prominence in the wake of the migrant influx into Germany, said the EU had become 'undemocratic' and 'occupied by the political class.'

Dexit would be a 'last resort' but the party would support it if its demands for reform are not met in the next five years, the document said.

The AfD, which has risen to prominence in a backlash against Angela Merkel (pictured), said the EU had become 'undemocratic' and 'occupied by the political class

Explosion outside AfD office in Saxony By Reuters German police have detained three men suspected of involvement in an explosion that targeted an office of the Alternative for Germany (AfD) far-right party in the eastern state of Saxony. No one was injured in the explosion outside the AfD office in the city of Doebeln late on Thursday. The blast set the office on fire and damaged vehicles and nearby buildings, Saxony's LKA criminal investigation office said in a statement. The LKA said its anti-terrorism unit had determined that the explosion was an escalation in politically motivated attacks targeting AfD offices in Saxony that are usually limited to acts of vandalism. 'The attack against the AfD office in Doebeln is special given that the explosion was intended to harm people,' the LKA said. Saxony was the site of far-right riots and demonstrations sparked by the stabbing to death of a Cuban-German man in the city of Chemnitz in August, initially blamed on two migrants from Iraq and Syria. Advertisement

The party said: 'The EU has turned into an undemocratic construct, occupied by political classes and shaped by opaque, uncontrollable bureaucrats.

'Democratic control of EU organs is completely inadequate and the ECJ does not take this role seriously, but instead extends the EU's powers at the expense of national sovereignty.

'If our fundamental reform proposals do not become reality in the next legislative period, we believe it will be necessary for Germany to leave the EU, or to dissolve it and found a new European economic community.'

The AfD has previously called for a referendum on Germany's membership of the single currency, but stopped short of demanding an exit from the EU itself.

The EU elections take place in May, meaning the party will set a deadline of 2024 for its demands to be met.

Among the specific demands are a 100-member assembly to replace the current European Parliament and a replacement for the ECJ.

Writing about Islam in its manifesto, the party said: 'Europe is fundamentally shaped by Greek and Roman antiquity, by Judaism and Christianity, by the Enlightenment and human rights.

'In the spirit of freedom, the rule of law and democracy we want to preserve this Europe permanently for us and our descendants.

'We will defend Europe against Islam, which on the basis of the Koran and Sunna is not compatible with basic European principles of law, freedom and democracy; which makes a claim as the only valid religion and which wants to impose Sharia.

Debris in front of an AfD office in Saxony - one of the party's strongholds - on Thursday night after an explosion which has led to three arrests

Police at the scene of the explosion outside an AfD office. The party has raised the prospect of 'Dexit', saying it could campaign for a German withdrawal from the EU

'Islam does not separate the state from religion and is therefore also a political ideology.

'The AfD is convinced that only a determined common effort by all European states can stop the threatened Islamisation of Europe.

'That threat has never been so great in the history of Europe, even if many people do not want to recognise it.'

Germany's EU membership has historically enjoyed strong support but discontent has grown as over a million refugees have arrived since 2015.

The AfD has grown in support amid a backlash against Angela Merkel's liberal immigration policies.

The party won more than 12 per cent of the vote at the 2017 general election and are now represented in all 16 state assemblies.

In an opinion poll in May, only 39 per cent of Germans said the country's EU membership was advantageous.

The largest group, at 45 per cent, said it was neither good nor bad while 14 per cent including half of AfD supporters expressed a negative view.