Turkey has waded into Syria's four-year civil war, using fighter jets to bomb Islamic State (Isis) fighters across the border for the first time.
Three Turkish F-16s left the southeastern city of Diyarbakir in early morning bombing raids that killed at least nine militants. Although the authorities did not saywhat the target was, it was reported that an Isis base and supply depot were struck near the border, with the missiles fired from within Turkish airspace.
After months of international pressure, the air raids marked Turkey's most explicit intervention in the Syrian war to date and reflected a major shift in its stance towards Isis. Prime Minister Ahmet Davutoglu promised that action against the Islamist group "will not stop".
The shape of Ankara's policy shift had been emerging since Wednesday, after it said it would finally allow US forces to use its bases in the fight against Isis.
On Friday raids in 13 provinces targeted people with alleged links to Isil or Kurdish militant groups, both thorns in the side of Erdogan's government, and 297 people were arrested. A statement said raids were conducted "without distinction" against all terrorist groups, a suggestion that is likely to prompt fears that Erdogan's Government will target Kurdish opposition under the cover of its war against Isis.
"Turkey cannot stand by as Kurdish, Leftist and Islamic State militants target Turkey," said Mr Davutoglu. "We will take necessary measures against whoever constitutes a threat to our border."
The Isis members arrested were part of the extremist group's higher management in Turkey, said Sinan Ulgen, head of the Turkish think tank Edam in Istanbul. He called the strikes a "turning point" but feared reprisals by Isis.
On Monday, an Isis-linked suicide attack on a mainly Kurdish youth group in the border town of Suruc killed 32 people and injured more than 100. Two days later, the paramilitary wing of the Leftist Kurdish Workers Party retaliated, executing two soldiers in their homes for alleged complicity with Isis.
Ankara's new deal with the White House will allow US forces to launch warplanes and Predator drones, some equipped with Hellfire missiles, from airbases at Incirlik and Diyarbakir, close to the border with Syria. The Turkish military said it would also take part in the operations.
Erdogan's Government has been criticised for its apparent tolerance of Isis, which has used Turkey's southern border as a transit hub for foreign fighters and goods.
Many have accused Ankara of supporting Isis in its bid to overthrow Bashar al-Assad's regime in Syria.
The week's unrest has knocked Turkey's already flagging economy, causing the Turkish lira fell to 0.36 against the US dollar.
The Turkish Government has already announced plans for a high-level security barrier along its 800km border with Syria.