MALE, Maldives (AP) — Voters in the Maldives went to the polls Saturday amid hopes that questions about the legitimacy of the government will finally be answered 19 months after the ouster of the first democratically elected president in the country, best known for its luxury island resorts.

About 240,000 people were eligible to vote in the election to pick a leader from among four candidates, though voter turnout was not immediately known. The polls closed late Saturday afternoon, and final election results were expected hours later.

The candidates included the Indian Ocean archipelago's first democratically elected president, Mohamed Nasheed, who says he was ousted in a coup.

Nasheed, who won the country's first multiparty election in 2008, ending 30 years of autocracy, resigned last year after weeks of public protests and slipping support from the military and police. He later said he was forced to resign at gunpoint by mutinying security forces and politicians backed by the country's former autocrat.

Though a domestic commission of inquiry has dismissed Nasheed's claim, the country has been in political turmoil ever since. Nasheed has repeatedly dismissed as illegal the government of his former vice president — current President Mohamed Waheed Hassan, who was also an election candidate.

Nasheed and Hassan were competing against Yaamin Abdul Qayyoom, a brother of Maldives' former autocrat Maumoon Abdul Gayoom, and businessman Qasim Ibrahim.

With 99 of the country's 470 ballot boxes counted, Nasheed was leading with 41 percent of the vote, with Qayyoom second at 28 percent. Qayyoom and Nasheed were considered the leading candidates.

If no candidate gets at least 51 percent of the vote, the top two vote getters will face off in a second round of voting on Sept. 28.

"The ruling government came (to power) not in a very good manner," Ahmed Ilyas, a 37-year-old port employee, said after voting. "Hopefully, after the election the international community and the locals will fully cooperate with the government."

About 240,000 of the Maldives' 350,000 citizens were eligible to vote.

"We are hoping it (the government) will be stable instead of an interim one in which we don't know which way we are going," said Jameel, a young voter who would give only his first name.

The next president must form a credible government, build up public confidence in government institutions that are accused of political bias, such as the courts, police and military, and deal with pressing issues, including high unemployment, increasing drug addiction among young people and improving transportation among the nation's far-off islands in the Indian Ocean.

Nasheed's fall from power last year came after he ordered the military to arrest a senior judge whom he accused of bias.

"This is absolutely crucial," Qayyoom said of the election after voting at a school in the capital, Male. "Things have gone so wrong in the past five years, it's absolutely imperative that we change for the better this time."