Turkey has accused Germany of interfering with the country's efforts to bring terrorists to justice after Berlin condemned Ankara's decision to arrest six human rights activists.

Earlier in July, Idil Eser – the director of Amnesty International's Turkish section – was detained along with seven other human rights defenders and two trainers, during a digital security and information management workshop at a hotel in Büyükada island, near Istanbul. The hotel owner was also arrested.

On 18 July, Eser and five other activists, including German national Peter Steudtner, were remanded in custody pending trial on terrorism charges.

The move prompted Germany to summon the Turkish ambassador to Berlin and raise the possibility of suspending aid sent to Turkey.

In response, the Turkish Foreign Ministry claimed Germany was interfering with Ankara's national affairs and judiciary system.

"There was direct interference in the Turkish judiciary and comments used which overstepped the mark," Turkey's foreign ministry said, according to Reuters.

"The comments again show the double standards in their approach to the law of those who prevent terrorists being brought to justice while embracing members of terrorist groups which target our country," the ministry said.

The six rights activists are among 50,000 people who are held in prison pending trial in Turkey, arrested following a failed coup d'etat that resulted in the deaths of at least 265 people last July.

Following the failed attempt to overthrow the government, Turkey has cracked down on people suspected of being affiliated with US-based cleric Fethullah Gulen, accused of being behind the failed coup. He denies the allegations.

Human rights groups have accused Turkey of curbing freedom of speech and curtailing other freedoms after sacking thousands of civil servants, academics, police and army officials. Following an April referendum that granted President Recep Tayyip Erdogan sweeping new powers, the country has suspended at least 14,000 civil servants, police and military personnel.

Amnesty International has openly criticised the crackdown and is calling for the release of Eser and the other activists.

Eser's arrest came weeks after Turkish police arrested Amnesty's Turkey chair Taner Kiliç. He was charged with membership of a terrorist organisation after being accused of using an encrypted messaging application called Bylock, which the government says is used by followers of the US-based cleric Fethullah Gulen. Kiliç denied the allegations.