Germany’s military is preparing to pull out from a Turkish airbase as a row between the two NATO partners escalates, Der Spiegel magazine reported Thursday.

Germany in December agreed to send Tornado surveillance jets and tanker aircraft to the Incirlik base in southern Turkey to aid the multinational coalition fighting the jihadist Islamic State group and currently has about 240 soldiers stationed there.

But Turkey has repeatedly refused to allow visits to Incirlik by German politicians, prompting junior coalition partner the Social Democrats (SPD) to demand Germany’s withdrawal from the airbase.

Germany’s military is a parliamentary force, meaning that MPs have decision-making power over deployments.

A German mandate in Incirlik runs out at the end of the year, and the SPD has threatened to block its extension.

“If it is no longer possible to visit our soldiers, then it is out of the question to extend the mandate,” Rainer Arnold, the SPD’s defence expert, told Spiegel.

Without citing its sources, the news magazine said the defence ministry is examining whether it could transfer its deployment to Jordan or Cyprus instead.

Tensions have been rising between Germany and Turkey over the German parliament’s decision to brand as genocide the World War I-era massacre of Armenians by Ottoman forces, as well as Ankara’s threat to back out of a crucial March deal with the EU on migrants.

Berlin also angered Ankara by criticizing President Recep Tayyip Erdogan’s post-coup crackdown, in which more than 40,000 state employees have been arrested.