The Latest on Malaysia's election (all times local):
Mahathir Mohamad says the new Malaysian government will not be seeking revenge on defeated prime minister Najib Razak, who is accused of involvement in a corruption scandal at state investment fund 1MDB.
U.S. investigators say at least $4.5 billion was stolen from the fund by associates of Najib between 2009 and 2014, including $700 million that landed in Najib's bank account.
Najib, who denies any wrongdoing, clamped down on dissent to survive the scandal.
Mahathir said he is not seeking revenge and wants to restore the rule of law.
He added that those found to have breached the law will be prosecuted.
Mahathir Mohamad has said after he led a Malaysian opposition alliance to a historic election victory that he expects a prime minister will be sworn in within a day.
Mahathir was the country's authoritarian leader for 22 years until 2003. He says the opposition's majority is bigger than announced so far.
The 92-year-old Mahathir says a representative of Malaysia's constitutional monarchy has contacted the opposition to acknowledge its victory.
Mahathir emerged from retirement and joined the opposition after being angered by an epic corruption scandal involving Prime Minister Najib Razak.
The opposition's win ends the National Front's 60 year hold on power.
Official results from Malaysia's national election show the opposition alliance led by the country's former authoritarian ruler Mahathir Mohamad has won a majority in parliament, ending the 60-year rule of the National Front.
The Election Commission says the opposition has so far won 112 seats and the National Front has 76 seats.
The opposition is also sweeping state elections, including Johor state where the dominant Malay party in the National Front was founded.
Malaysian voters have been angered by a corruption scandal involving Prime Minister Najib Razak and new taxes.
Mahathir is 92 and leads an alliance of opposition parties.
Malaysia's long-serving former Prime Minister Mahathir Mohamad is confident the alliance of opposition parties he heads has defeated the ruling party in national elections.
The Election Commission's official counts are lagging behind unofficial counts that show the opposition ahead of Prime Minister Najib Razak's ruling National Front. Mahathir accused the commission of holding back results. The commission did not respond to phone calls or text messages seeking comment.
Mahathir, 92, told a news conference that the ruling coalition is "left far behind and the likelihood is that they will not be forming the government. This is not fake news."
Incomplete unofficial counts show the opposition with 77 parliamentary seats to the National Front's 57. A simple majority in Malaysia's parliament is 112 seats.
Mahathir urged Najib to accept the outcome of the election.
Unofficial results from Malaysia's general election are showing a swing to the opposition. It remains unclear whether it is significant enough of a shift to end the ruling National Front's 60-year hold on power.
The opposition is gaining ground in the ruling party's eastern stronghold of Sarawak state, and TV networks report that the heads of a Chinese party and an Indian party within the Malay-dominated ruling coalition lost their seats in regions that are also vote banks for it.
The Election Commission has not released final turnout figures more than four hours after voting closed. Its running of the election has been criticized by both opposition and ruling party figures.
Voting is over in Malaysia's closely fought general election but not without opposition complaints that some people were denied a vote.
Election Commission Chairman Mohamad Hashim Abdullah says voters aren't allowed to cast ballots after 5 p.m. even if they're in a queue at polling places. He says this is part of Malaysia's election law and those unhappy with it can challenge the decision in court. It's unclear how many voters have been affected.
Opposition leader Mahathir Mohamad says he received reports many voters were still queuing at 5 p.m. and criticized the commission for not providing enough polling stations.
He says "the process is not efficient enough," adding, "it's not the voters' fault."
Results are expected late Wednesday evening.
Malaysia's Merdeka Opinion Center says the final voter turnout in Wednesday's general election is likely to be lower than the record 85 percent in 2013 but still high compared with earlier elections.
The center's program director Ibrahim Suffian says turnout may be about 80 percent or in the high 70s after the Election Commission said it was 69 percent as of 3 p.m.
Ibrahim says the decision to hold the election midweek is probably the main factor in turnout falling from 2013 as some people wouldn't have been able to make it hometowns to vote, particularly among the half million Malaysians who work in neighboring Singapore.
Some analysts say a lower turnout favors the ruling party. Polling booths close at 5 p.m.
Election officials say turnout has hit 55 percent by 1 p.m. in Malaysia's general election.
Election Commission chairman Mohamad Hashim Abdullah told a news conference, "We see a difference this time in people's desire to vote. Many were out early to cast their ballot."
Polling booths opened at 8 a.m. and close at 5 p.m. Wednesday.
Mohamad Hashim said the rush to vote could be due to a forecast of rain in the afternoon while some voters were influenced by viral messages on social media warning them to vote early so that their names won't be used in election fraud. He urged voters to ignore "fake" messages aimed at creating panic.
He said the commission will investigate complaints that ballot papers didn't reach some postal voters in time and that some were invalid because they weren't stamped as official. He said the incidents are isolated and the commission will investigate.
Malaysian opposition alliance leader Mahathir Mohamad says he's "quite confident" after voting in Alor Setar in Kedah state.
Mahathir, prime minister for 22 years until 2003, emerged from political retirement and joined the opposition in an attempt to oust Prime Minister Najib Razak, his former protégé, after a multibillion-dollar corruption scandal at state investment fund 1MDB set up by Najib.
A crowd of cameramen and photographers jostled for space as a smiling Mahathir, 92, entered the polling booth and waited for his turn to vote.
As he left in a car, Mahathir said, "I'm quite confident by the way people (have) come. People are for people."
Malaysian Prime Minister Najib Razak has called the election campaign "quite vicious" after casting his vote in the coastal city of Pekan.
Najib showed reporters a finger stained in purple ink after voting and then greeted supporters.
Najib's ruling coalition is facing a strong challenge from an opposition alliance led by his former mentor, 92-year-old Mahathir Mohamad, who was Malaysia's prime minister for 22 years until 2003. Voters have been angered by a corruption scandal at a state investment fund set up Najib and increased taxation.
Najib said the campaign was "quite vicious in the content of the personal attacks which doesn't reflect a mature democracy."
He urged Malaysians to vote based on facts. He said, "It must be based on facts, it must be based on policy, it must be based on who can execute the best plan for the nation and for the people."
Long lines are forming at polling booths in Kuala Lumpur and other cities as voting begins in Malaysia's general election.
The election pits an opposition led by former authoritarian leader Mahathir Mohamad against the ruling coalition of Prime Minister Najib Razak, whose image has been sullied by corruption allegations and an unpopular goods and services tax.
Morning newspaper headlines focused on Najib's election eve promises of tax exemptions for young people, extra public holidays and a five-day break from road tolls if his coalition wins.
Analysts say the ruling National Front, in power since independence from Britain in 1957, might lose the popular vote for a second consecutive election. But it could still win a majority of seats in parliament due to an electoral system that gives more power to rural Malays, its traditional supporters.