ATHENS/SKOPJE (Reuters) - Greece and Macedonia have reached an historic accord to resolve a dispute over the former Yugoslav republic’s name that has troubled relations between the two neighbors for decades.

Under the deal, Macedonian Prime Minister Zoran Zaev said his country would officially be called the “Republic of Northern Macedonia”. It is currently known formally at the United Nations under the interim name “Former Yugoslav Republic of Macedonia”.

Zaev said the deal would open the way for the tiny Balkan nation’s eventual membership of the European Union and NATO, currently blocked by Greece’s objections to its use of the name Macedonia. Athens say that name implies territorial claims on a northern Greek province of the same name.

“There is no way back,” Zaev told a news conference after speaking with his Greek counterpart Alexis Tsipras by telephone. A meeting of the two soon may seal the deal, he said.

“Our bid in the compromise is a defined and precise name, the name that is honorable and geographically precise - Republic of Northern Macedonia.”

“By solving the name question, we are becoming a member of NATO,” Zaev added.

The accord still requires ratification by the two national parliaments and a referendum in Macedonia, a tough test for the leaders in both countries.

“Today is a hard day for the Republic of Macedonia. We just saw a press conference where the defeat is shown as a fake victory,” Hristijan Mickoski, president of opposition party VMRO-DPMNE said.

Skopje also needs to revise its constitution, Tsipras said, before Greece ratifies the deal.

The name dispute has soured relations between the two neighbors at least since 1991, when Macedonia broke away from former Yugoslavia, declaring its independence under the name Republic of Macedonia.

“HISTORIC GRAVITY”

Many Greeks felt their northern neighbor was trying to hijack Greece’s ancient cultural heritage. Macedonia is the birthplace of Alexander the Great.

“Maybe what has the most historic gravity and value for Greece (is that) according to this accord... our northern neighbors don’t have, and cannot assert, any link to the ancient Greek culture of Macedonia,” Tsipras said in a televised address on Tuesday evening.

Slideshow ( 11 images )

But Greeks seem cool to any deal involving the continued use of the name “Macedonia” by their northern neighbor. Most opposition parties have criticized Tsipras’s tactics, and even his coalition partner, the right-wing Independent Greeks, have said they will not back an accord that allows the continued use of “Macedonia”.

However, Greece’s leftist leader is still likely to win support from centre-left parties. “We want to be part of a solution,” said an official at the opposition Socialist Party.

Athens and Skopje have been racing to agree the outline of a settlement before an EU summit in late June. A NATO summit is scheduled for mid-July.

Slideshow ( 11 images )

“This historic agreement is testament to many years of patient diplomacy and to the willingness of these two leaders to solve a dispute which has affected the region for too long,” said Jens Stoltenberg, Secretary-General of NATO.

Bulgaria, holder of the EU’s rotating six-month presidency said the deal paved the way for accession talks.

Bulgaria, which also shares a border with Greece and Macedonia, said the new name should not be used for territorial or claims concerning language, culture, history or identity.

Veteran United Nations diplomat Matthew Nimetz, who has been a mediator in the name dispute since 1994, hailed the “leadership, vision and determination” of the foreign ministers of Greece and Macedonia, who have negotiated for months.

“I am encouraged by the dedication of both governments to deliver mutual benefits for all their citizens through the establishment of a strategic partnership as a basis for intensified cooperation across all sectors,” he said in a statement.