Pakistan's new parliament was sworn-in on Saturday, completing the country's first-ever democratic transition of power in a country ruled for half its history by the military.

Newly-elected lawmakers came to the parliament building for the oath-taking ceremony amid tight security around the "Red Zone" of the capital Islamabad where key government buildings are located, an AFP photographer said.

Speaker of the national assembly Fehmida Mirza administered the oath to lawmakers, with the ceremony broadcast live on television. The session began with the playing of national anthem and the traditional recitation from the Koran.

The national assembly secretariat said in a statement that a new speaker and deputy speaker will be elected through secret ballot on Monday, while the new prime minister, Nawaz Sharif, will be formally elected by the lower house and sworn in on Wednesday.

Sharif's Pakistan Muslim League-N (PML-N) romped to victory in the elections and will command 177 of the 342 seats in the new assembly, giving it significant leverage to oust President Asif Ali Zardari when his term expires in September.

The former prime minister, 63, will take up the reins of power for an unprecedented third term when he is sworn in. During his two previous administrations he earned a reputation for hotheadedness and pugnacity.

"I thank Allah who gave our nation an opportunity to bring a new government through elections," Sharif told reporters at Islamabad airport where he arrived from his home town Lahore.

"It is a good development that a peaceful democratic transition is taking place today. There could not be a better way to change a government through ballot. I congratulate the nation over it."

Pakistan's 65-year history has been punctuated by three periods of military rule. The country achieved its democratic milestone by completing its full five-year term under a coalition government led by the Pakistan People's Party.

But the PPP was routed at the polls, blamed by voters for five years of apathy and drift which saw crippling power shortages worsen and militancy continue almost unabated.

PML-N leaders said they work with the opposition to take on the various problems confronting the country.

"We will closely coordinate with the opposition parties to tackle the enormous problems facing our country," senior PML-N figure and newly elected MP Ahsan Iqbal told reporters.

But the problems facing Sharif's new government are enormous -- a failing economy, endless power cuts and rampant Islamist militancy.