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."
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.
Why are you making commenting on The Herald only available to subscribers?
It should have been a safe space for informed debate, somewhere for readers to discuss issues around the biggest stories of the day, but all too often the below the line comments on most websites have become bogged down by off-topic discussions and abuse.
heraldscotland.com is tackling this problem by allowing only subscribers to comment.
We are doing this to improve the experience for our loyal readers and we believe it will reduce the ability of trolls and troublemakers, who occasionally find their way onto our site, to abuse our journalists and readers. We also hope it will help the comments section fulfil its promise as a part of Scotland's conversation with itself.
We are lucky at The Herald. We are read by an informed, educated readership who can add their knowledge and insights to our stories.
That is invaluable.
We are making the subscriber-only change to support our valued readers, who tell us they don't want the site cluttered up with irrelevant comments, untruths and abuse.
In the past, the journalist’s job was to collect and distribute information to the audience. Technology means that readers can shape a discussion. We look forward to hearing from you on heraldscotland.com
Comments & Moderation
Readers’ comments: You are personally liable for the content of any comments you upload to this website, so please act responsibly. We do not pre-moderate or monitor readers’ comments appearing on our websites, but we do post-moderate in response to complaints we receive or otherwise when a potential problem comes to our attention. You can make a complaint by using the ‘report this post’ link . We may then apply our discretion under the user terms to amend or delete comments.
Post moderation is undertaken full-time 9am-6pm on weekdays, and on a part-time basis outwith those hours.
Read the rules here