Turkey brought forward troop deployment to Qatar on Wednesday and pledged to provide crucial food and water supplies to the Gulf Arab country facing a worsening rift with its powerful Middle Eastern neighbors.
In the deepest split between Arab states for decades, Saudi Arabia, Egypt, the United Arab Emirates (UAE) and Bahrain severed relations with Qatar on Monday and closed their airspace to commercial flights, saying it was funding militant groups.
Qatar vehemently denies the accusations.
Turkish President Tayyip Erdogan has said isolating Qatar would not resolve any problems. Erdogan, who has long tried to play the role of a regional power broker, said Ankara would do everything in its power to help end the regional crisis.
Lawmakers from Erdogan's ruling AK Party and the nationalist opposition MHP were the main backers of the bill that allows troops to be deployed to Turkey's base in Qatar, but the main opposition CHP party said the timing sent the wrong message.
"With these agreements, Turkey is making a choice and by standing by Qatar it is taking on the other countries. This is a wrong policy," CHP deputy head and lawmaker Ozturk Yilmaz said. "How will you be a mediator if you are taking sides?" he said.
Turkey has maintained good relations with Qatar as well as several of its Gulf Arab neighbors. Turkey and Qatar have both provided support for the Muslim Brotherhood in Egypt and backed rebels fighting to overthrow Syrian President Bashar al-Assad.
The Turkish parliament has also endorsed an accord between the two countries on military training cooperation. Both bills were drawn up before the spat erupted. The fast-tracking of the legislation has weighed on the Turkish lira.
Turkey's main exporters' body said it was ready to meet food and water supply demands from Qatar, after a Qatari official said Doha was in talks with Iran and Turkey to ensure trade disruptions did not create shortages.
Grain traders said Qatar appears to have a comfortable immediate supply of wheat.
"Qatar recently purchased about 20,000 tonnes of Russian milling wheat which according to my calculations has just arrived in past days or will arrive in coming days," one European grain trader said.
The president of Qatar's Chamber of Commerce was quoted on Wednesday by local media as saying Qatar had enough food stored in strategic reserves to last for a year.
"There will be no shortage of food and other products as more than 95 percent of imports from Qatar arrive by air and sea," Qatari Sheikh Khalifa bin Jassim al-Thani said.
Turkey set up a military base in Qatar, its first such installation in the Middle East, as part of an agreement signed in 2014. In 2016, Ahmet Davutoglu, then Turkish prime minister, visited the base where 150 personnel are already stationed, the Turkish daily Hurriyet reported.
In an interview with Reuters in late 2015, Ahmet Demirok, Turkey's ambassador to Qatar at the time, said 3,000 ground troops would eventually be deployed at the base, which was primarily to serve as a venue for joint training exercises.
The text of the draft bill, which includes the agreement between Qatar and Turkey on the base, shows the cooperation will be primarily about the modernization of Qatar's military, as well as widening cooperation in training and war exercises.
The bill did not specify how many troops would go nor when.