CAIRO — Egyptians were voting Sunday on the last day of a highly divisive presidential run-off between an Islamist and Hosni Mubarak's last prime minister, amid moves by the army to consolidate its power ahead of the final results.

Former air force chief Ahmed Shafiq, who served as ex-president Mubarak's prime minister in the last days of the uprising that toppled him, is vying for the top job against Muslim Brotherhood candidate Mohammed Mursi.

"Shafiq is the right man for this phase of the country," said Osman, 55, a government employee.

But standing next to him in Cairo's Tahrir Square Marwan Adel, a teacher, said the iconic square and cradle of last year's uprising would always be there to keep up the pressure on the army.

"We are ready to restart the revolt," Adel said.

Small queues formed outside polling stations, which had opened at 0600 GMT, with police and army deployed nationwide, and voting was extended until 1900 GMT.

"Zero hour approaches," read the headline of the state-owned daily Al-Gomhouria, as the polarising race prepared to wrap up.

The election comes against a backdrop of legal and political chaos, with the Muslim Brotherhood set on a confrontation path with the ruling military after it ordered the Islamist-led parliament dissolved.

The move throws Egypt's already tumultuous transition after Mubarak's ouster last year into further disarray with the new president expected to take office without a parliament and without a constitution.

"The new president will head to the presidential palace amid a terrifying legal and constitutional vacuum," wrote political analyst Hassan Nafea in the independent daily Al-Masry Al-Youm.

The ruling military council is to maintain control over legislation and the budget in the absence of a parliament, even as the country prepares to announce a new president, military sources told AFP.

Military sources said the ruling Supreme Council of the Armed Forces was set to issue an amended constitutional declaration.

The sources say article 56 of the declaration will be amended to give legislative powers and state budget to the SCAF, following a ruling by Egypt's top court that the Islamist-led parliament is invalid.

The SCAF had in January handed legislative power to parliament.

The SCAF will also issue new rules under article 60 for the formation of the constituent assembly that is to draft the country's permanent constitution.

Article 30 of the declaration will also be amended to say that the new president will be sworn in before the Supreme Constitutional Court instead of by the lower house of parliament.

The race has polarised the nation, dividing those who fear a return to the old regime under Shafiq from others who want to keep religion out of politics and fear the Brotherhood would stifle personal freedoms.

The new president will inherit a struggling economy, deteriorating security and the challenge of uniting a nation divided by the 18-day uprising that toppled Mubarak in February 2011.

The election comes against the backdrop of a series of steps that have consolidated the power of the ruling SCAF, infuriating activists and boosting the boycott movement.

On Thursday, the Supreme Constitutional Court ruled certain articles in the law governing parliamentary elections to be invalid, thus annulling the Islamist-led house.

It also invalidated a law that had threatened to bar Shafiq from the presidential race.

That, in addition to a recent justice ministry decision granting the army the right to arrest civilians, is proof of the military's plans to cement itself in power, analysts believe.

"A Shafiq victory will not only guarantee the SCAF has one of its men in the highest position of executive power, it will also give it an influential role in building the other political institutions of the new regime," Nafea said.

Activists accuse the SCAF, which took power when Mubarak was ousted, of staging a "counter-revolution."

"This series of measures shows that the SCAF, which heads the counter-revolution, is determined to bring back the old regime and that the presidential elections are merely a show," six parties and movements said in a statement.

The military says it does not want to stay in charge and promises to hand power to the newly elected president by the end of the month.

On Saturday the military notified parliament it has been dissolved and banned its members from entering the house, a move swiftly rejected by the Islamists.

Parliament received a notice saying that Egypt's ruling generals had decided "to consider parliament dissolved," the official MENA news agency reported.

"Constant threats to dissolve parliament, elected with the will of 30 million Egyptians, confirm the military council's desire to monopolise power," the Brotherhood's political arm, the Freedom and Justice Party, said in a statement.

"Dissolving the elected parliament must go to a fair referendum," it added.