Turkey's parliament has approved a reconciliation agreement with Israel, bringing an end to a nearly six-year dispute between the two countries.

The deal was signed in June, but it wasn't approved by Turkey's parliament until this week. The news was announced by Prime Minister Binali Yildirim.

The rapprochement with Israel comes amid growing worries in the West that Turkey will move to isolate itself from the West and move toward a more Islamist posture as Turkish President Recep Tayyip Erdogan consolidates power following a failed coup.

The reconciliation deal approved by Turkey's parliament sees Israel, which has already apologized for the 2010 incident, paying approximately $20 million to the wounded and the families of those killed in the raid. In return, Turkey will drop its outstanding legal claims against Israel.

Things had turned increasingly bitter between the two countries after Israeli Marines killed 10 Turks in 2010 during a raid enforcing a naval blockade of the Hamas-run Gaza Strip.

The deal paves the way for the restoration of full diplomatic ties, and both countries will appoint ambassadors.

The deal agreed to this week by Turkey's parliament also recognizes that the naval blockade of Gaza, which the Turkish leadership had opposed, will remain in force.