Efforts to change the name of the Balkan state now enters crisis mode as voters failed to turn out in a blow for Western leaders who campaigned for a "yes" vote.
The court based its ruling on Nikola Gruevski, Macedonia's prime minister, on evidence from audio collected during a wiretapping scandal in 2015.
Macedonian Prime Minister Zoran Zaev said a deal had been reached while his Greek counterpart Alexis Tsipras said much ground had been covered, but there is still a way to go yet.
Nikola Gruevski faces charges of corruption and abuse of power in several legal cases following a major wiretapping scandal.
Charges have been brought against 94 individuals including the country's former security and counterintelligence chief as part of anti-corruption clampdown.
Macedonia's nationalist party appears to have won Sunday's snap parliamentary election, but the result is so tight that the opposition has yet to concede.
Thousands of people continue their protests in the Macedonian capital after a wiretapping scandal.
European Union official says it could consider putting sanctions on Macedonian politicians who block agreement that aims to end political crisis
Thousands of Macedonians rally to demand resignation of President Gjorge Ivanov over pardons in wire-tapping scandal
Macedonia prosecutor to pursue wiretap probe despite Macedonian president granting amnesty for government and opposition figures
EU commissioner Hahn slams Macedonian president's decision to stop wiretap inquiry that dragged country into deep political crisis
Subscribe to our Youtube channel for all latest in-depth, on the ground reporting from around the world.
Copyright © 2021 TRT World.