A mosque in Cologne is at the centre of spy claims
Prosecutors said the searches in the western states of North Rhine-Westphalia and Rhineland-Palatinate were carried out to gather further evidence against the imams.
The men are suspected of spying for Turkish President Recep Tayyip Erdogan as part of his brutal crackdown on supporters of a failed military coup last July.
They are believed to have been reporting on followers of US-based Islamic preacher Fethullah Gulen, who Mr Erdogan blames for leading the bid to overthrow him.
A building linked to Turkish Religious Affairs Directorate
The purpose of today's searches is to gather further evidence on the alleged activities of the accused
Information was allegedly passed through the Turkish consulate in the western city of Cologne to the Turkish Religious Affairs Directorate, known as Diyanet.
A spokesman for the prosecutor’s office said: "The purpose of today's searches is to gather further evidence on the alleged activities of the accused.”
News site Spiegel online reported the imams belong to Ditib, an organisation controlled by Ankara that manages some 900 mosques or religious communities in Germany.
Turkish President Recep Tayyip Erdogan
The Erdogan government has cracked down hard on followers of Gulen, who denies being behind the attempted coup.
Get Quotes on Home Insurance
More than 41,000 people have been arrested over their suspected links to Gulen's movement, and 100,000 fired or suspended. Many of them are teachers, police, magistrates and journalists.
The government insists the purges are necessary to clean the state of the "virus" of Gulen's movement, which encourages its members to work in public services.
Exiled Turkish preacher Fethullah Gulen Turkish Military Coup: 294 dead Wed, July 27, 2016
THE violent military coup to overthrow Turkey's President Erdogan has 'failed' leaving at least 104 dead and more than 1,500 wounded – but reports suggest fighting is still ongoing
Play slideshow AFP/Getty Images 1 of 42
People react after they take over military position on the Bosphorus bridge in Istanbul on July 16, 2016
Human rights activists have condemned the crackdown, saying it has gone well beyond alleged coup plotters.
Germany is home to three million people of Turkish origin, the biggest population of Turks in the world outside Turkey.
Chancellor Angela Merkel's government has repeatedly criticised the scale of the crackdown and urged Mr Erdogan to safeguard civil liberties.
But the Turkish president is furious with Germany for failing to extradite hundreds of suspects linked to the coup, as well as members of the outlawed Kurdistan Workers' Party (PKK) and other ultra-left activists.
- Turkey and the UK sign £100m deal to build fighter jets
- Theresa May agrees 'unique' deal with Turkey to crush ISIS in Syria
- Turkish police arrest ISIS jihadis as police find 24 suicide belts