Ghanaian soldiers intervened in parliament to quell a clash between opposing parties in chaotic scenes overnight ahead of the body's swearing-in on Thursday.
Mayhem erupted after a lawmaker from the ruling party tried to seize the ballot box during the vote for parliament speaker.
The ensuing clash lasted several hours until the army moved in, with national television broadcasting the drama live.
After order was resumed, the legislature narrowly chose someone from opposition ranks to be speaker -- a first in Ghana's nearly 63-year post-independence history.
Despite the historic choice, many legislators said the chaos had cast a dark shadow.
"There was total breakdown of law and order," said Kwame Twumasi Ampofo of the opposition National Democratic Congress (NDC).
"Looking at a member of parliament and a minister of state snatching ballot papers... was so shameful."
The new parliament is split down the middle between the two main parties, posing the risk of gridlock on tackling Ghana's problems.
President Nana Akufo-Addo, who narrowly won re-election in the December 7 vote for the legislature and head of state, was also to be sworn in on Thursday.
- 'Complete mess' -
Ghana stands out as a stable democracy in volatile West Africa and observers, both Ghanaian and foreign, viewed the polling as generally free and fair.
However, the ballot was marked by opposition accusations of fraud and five people died in violence.
More than a dozen opposition MPs were charged with unlawful gathering on Monday after protesting the results.
Footage from the overnight confrontation in parliament showed some of the legislators shouting and brawling with rivals.
"This is history wrongly being made. We need to bow our heads in shame," said ABA Fuseini, another incoming opposition MP.
Samuel Abu Jinapor, an MP-elect with Akufo-Addo's New Patriotic Party (NPP), described the scenes as a "complete mess".
The NPP won 137 seats in the 275-member parliament, after shedding 32 in the election, leaving it equal to the 137 held by the NDC.
A lone independent won the remaining seat.
On Wednesday, an NDC MP was ordered suspended on legal grounds because he had dual nationality, which in theory brought the opposition's ranks down to 136.
However, he insisted on casting his vote on Thursday morning, a move that sparked further scuffles and chaos.
The ballot for speaker was won by the NDC's Alban Bagbin by 138 votes to 136 -- the outcome of one vote that was rejected as spoilt, and another that was probably cast in his favour by a member of the NPP.
It was the first time in Ghana's history, since independence from Britain in 1957, that a member of the opposition had been appointed to this key post.
"I humbly accept the high and privileged office," Bagbin said.
- Gridlock warning -
Analysts warned of the risk of legislative deadlock at a time when the nation of 30 million faces crunch decisions about its economy.
Severely hit by the Covid-19 pandemic, Ghana is expected to see growth plummet in 2020 to its lowest in three decades, to 0.9 percent, according to the International Monetary Fund (IMF), from 6.5 percent in 2019.
The government also faces the urgent task of reining in mounting debt, which surpassed 70 percent of GDP in September, and control rising inflation.
"If we don't see consensus being built, I can bet you we're going to see the NDC making life very difficult for the executive for the next four years," said Rasheed Draman, executive director of the African Center for Parliamentary Affairs, a non-profit group that campaigns for parliamentary democracy in Africa.
Kobi Annan of a strategic consultancy called Songhai Advisory, said, "We don’t want to end up in a situation where NDC has a majority and use that to only block government activity -- that’s a no-win for anybody."
"This should be an opportunity to force collaboration between the two main parties and sit down and really look at what's in Ghana’s interest."