Irish officials started counting votes on Sunday in a general election forecast to put Prime Minister Leo Varadkar's party in a historic three-way tie after a surge from republican party Sinn Fein.
Counting began at 0900 GMT after an exit poll predicted Varadkar's incumbent Fine Gael party, the Fianna Fail party and Sinn Fein all received 22% of first preference votes in Saturday's election.
In Dublin's main count center staff unsealed and emptied black ballot boxes onto ranks of tables as party members anxiously looked on.
The outcome of the vote has been thrown into uncertainty by a dramatic surge in support for Sinn Fein.
An Ipsos MRBI exit poll of around 5,000 voters, issued as the polls closed on Saturday, put Fine Gael on 22.4%, Sinn Fein on 22.3% and Fianna Fail on 22.2%. The survey has an estimated margin of error of 1.3%.
However, Ireland uses a single transferable vote system to elect multiple deputies from each of the 39 constituencies, making it hard to extrapolate a likely seat forecast from the first preference votes exit poll.
That means every ballot of the estimated 3.3 million-strong electorate will count in the battle to form the next government.
Some 159 seats are up for grabs in the Dail, the Republic of Ireland's lower house of parliament, but filling them may not be quick due to the multiple rounds of counting required.
Eunan O'Halpin of Trinity College Dublin university said it would take "perhaps two-and-a-half days for the full picture to be known" in terms of seats.
- Coalition posturing -
The shape of the government could take much longer to come into focus and may hinge on inter-party negotiations once the seat spread becomes clear.
Following Ireland's 2016 election it took 70 days before a new minority coalition government was formed under Fine Gael.
During this year's election campaign, Fine Gael and Fianna Fail both ruled out working with Sinn Fein, citing the party's historic links to the Irish Republican Party paramilitary group.
During "The Troubles" --- 30 years of bloodshed when 3,500 were killed by bombs and bullets -- the party acted as the political wing of the IRA in its battle to unite the British territory of Northern Ireland with the Republic of Ireland.
Fianna Fail leader Micheal Martin also said he would not back center-right rivals Fine Gael in a "grand coalition.” But his party has propped up the Fine Gael minority government through a confidence and supply arrangement since the last election -- suggesting common ground could be found again.
And analysts have said statements ruling out coalitions could be pre-election posturing, and party stances may change as the parliamentary arithmetic becomes clear.
"We've never seen a general election result like it. Basically a statistical tie between what are now the three big parties," said Pat Leahy, political editor of The Irish Times newspaper.
He told RTE television that forming a government could prove "a very difficult exercise" unless parties compromised on their pre-election stances.
- PM's future in the balance -
Varadkar became Ireland's prime minister in June 2017 after an internal Fine Gael leadership contest. The party had been in power since 2011 under his predecessor Enda Kenny.
Saturday was Varadkar's first time facing voters at the polls as the prime minister, or taoiseach.
Just 41 years old, he is Ireland's first mixed-race and openly gay premier who has come to represent a more socially progressive nation after years of dominance by the Roman Catholic Church.
He plumped for an early election after successfully helping to broker a deal cushioning Britain's EU exit on Jan. 31 by avoiding a hard border with Northern Ireland.
Varadkar's campaign was focused on Brexit -- but did not seem to land with voters concerned with issues of healthcare, housing and homelessness.
In the Saturday exit poll just 1% of respondents said Brexit was the key factor in how they voted.
Health ranked on 32% whilst the issue of housing and homelessness was on 26%.