FRANKFURT (Reuters) - Germany’s parliament on Wednesday approved the planned withdrawal of troops from the Incirlik air base in southern Turkey after Ankara’s refusal to allow German lawmakers access to its soldiers there.

Turkey has refused to allow German lawmakers to make what they see as a routine visit to the base, saying that Berlin needs to improve its attitude towards Turkey first.

Turkey was infuriated when Germany, citing security concerns, banned some Turkish politicians from campaigning on its soil, where many Turks live. Ankara responded by accusing Berlin of “Nazi-like” tactics and reigniting a dispute over Incirlik.

“The German Bundestag (parliament) regrets very much that conditions for the continued stationing of the Bundeswehr in Incirlik are not met,” the Bundestag said in a document that laid out its decision.

It said a transfer of the 280 German troops from Incirlik to an air base in Jordan should go ahead swiftly.

The Bundestag said on Wednesday its members must have access to troops stationed abroad to fulfill its constitutional duties.

German armed forces are subordinated to parliament, not the government, meaning lawmakers have oversight of the troops. Wednesday’s approval followed an earlier government decision that troops must move.

German Chancellor Angela Merkel, running for a fourth term in the September election, stressed earlier this month that Germany and Turkey have mutual interests and must keep talking even after the withdrawal.

Critics accuse Merkel of cosying up to President Tayyip Erdogan to secure his help in stemming the flow of migrants to western Europe.

Relations between the NATO allies have soured significantly in the past year.

Turkey reacted angrily to German and European criticism of a domestic security crackdown after a failed coup attempt last July. Berlin is also demanding the release of a German-Turkish journalist in jail in Istanbul on charges of propaganda in support of a terrorist organization and inciting violence.