Samoa appears set to appoint its first woman leader after the nation’s top court reinstated the results of a knife-edge election last month.

Two decisions by the supreme court have paved the way for Fiame Naomi Mata’afa to become prime minister of the small island nation.

Her ascent represents a significant milestone not only for Samoa but for the broader South Pacific region, where there have been few women leaders.

Like many of its neighbours, Samoa tends to be conservative, strongly Christian and deeply traditional.

An advocate for women’s equality, Ms Fiame, who was born in 1957, broke new ground during her campaign by going on the road and robustly criticising the incumbent, prime minister Tuilaepa Sailele Malielegaoi, who has been in power for 22 years.

The court’s decisions appeared to end what most people viewed as an attempt by Mr Tuilaepa to cling to power. Ms Fiame had served as his deputy before they had a bitter split.

“Glory to our Father!” Ms Fiame’s Fast Party wrote on Facebook after the court’s decision. “Now it’s time to get to work.”

Tuilaepa Sailele Malielegaoi
The incumbent prime minister Tuilaepa Sailele Malielegaoi (AP)

The April election initially ended in a 25-25 tie between the Fast Party and Tuilaepa’s HRP Party, with one independent candidate.

The electoral commissioner then appointed another HRP candidate, supposedly to conform to gender quotas.

The independent candidate, meanwhile, chose to go with Ms Fiame, making it 26-26.

The head of state then stepped in to announce fresh elections to break the tie. Those elections in the nation of 200,000 were supposed to be held later this week.

Ms Fiame’s party appealed and the supreme court finally ruled against both the appointed candidate and the plans for the new elections, restoring the Fast Party to a 26-25 majority.

Dozens of her supporters gathered outside the court and celebrated with singing after the decision.

Ms Fiame wrote on Facebook that while people remained confused about what had happened, she believed the incumbent government used every means, both legal and illegal, in an attempt “to stop us from taking our rightful seats in parliament and to form the government”.

With the court ruling paving the way for Ms Fiame to lead Samoa, New Zealand prime minister Jacinda Ardern said it felt like a significant moment.

“It is certainly a meaningful thing when you see a historic decision made when the office is held by a woman,” Ms Ardern said.