Ankara: A Turkish military operation to rescue 38 soldiers guarding a tomb in Syria surrounded by Daesh militants was launched to counter a possible attack on them, presidential spokesman Ebrahim Kalin said on Monday.

The action, which involved tanks, drones and reconnaissance planes as well as several hundred ground troops, was the first of its kind by Turkish troops into Syria since the start of the civil war there nearly four years ago.

“With this operation, our government has removed the risk of a possible attack on the tomb and the military post, and of endangering the lives of our soldiers,” Kalin told a news conference in Ankara.

The Syrian government described the operation as an act of “flagrant aggression”, a response dismissed by Kalin, who said the Syrian authorities had lost all legitimacy.

He also said Turkey was working intensively with the British authorities to trace three London schoolgirls who travelled to Turkey last week and are believed to be making their way to Syria.

Thousands of foreigners from more than 80 nations including Britain, other parts of Europe, China and the United States have already joined the ranks of Daesh and other radical groups in Syria and Iraq, many crossing through Turkey.

Turkey has said it needs more information from Western intelligence agencies to intercept them. Kalin said Turkey had already deported a total of 1,400 people suspected of seeking to join extremist groups.