Turkey's parliament has authorised the government to carry out cross-border military operations in Iraq and Syria to fight the Islamic State of Iraq and the Levant (ISIL) and other armed groups.
Thursday's vote also allows foreign soldiers to be stationed in Turkey and to use its military bases for the same purposes.
Al Jazeera's Bernard Smith, reporting from Urfa in southern Turkey, said the legislation allows Ankara to go after any terrorist threat, not just ISIL.
"The legislation spoke of the threat posed by the Assad regime, a destabilised Syria, the Kurds, and finally ISIL."
The motion, put forward by the ruling AK Party, passed with 298 votes in favour and 98 against.