A Turkish anti-riot police officer stands guard in front of German consulate on March 17, 2016 in Istanbul, Turkey. | Ozan Kose/AFP via Getty Images Germany closes Ankara embassy fearing possible terror attack ‘Very serious indications’ of a coming attack.

Germany closed its embassy in Ankara and its consulate in Istanbul on Thursday after receiving warning of an imminent attack, said Foreign Minister Frank-Walter Steinmeier.

Steinmeier also told reporters in Berlin that Germany shut its schools in both cities.

He said there were "very serious indications" of possible terrorist attacks on German diplomatic missions after authorities received a security warning Wednesday night.

“This was a necessary measure, because the protection of German citizens and of those working and learning in the institutions must have priority now," he said.

The German Foreign Office advised increased caution in Istanbul, Ankara and other large Turkish cities on its website.

The warning was made a few days after Sunday's suicide car bombing in Ankara which killed 35 people, and precedes Thursday's EU leaders' summit with Turkey to deal with the migration crisis.