ISLAMABAD—Pakistan’s parliament elected Nawaz Sharif as prime minister on Wednesday, marking a historic transfer of power in a country that has undergone three military coups.

Now Sharif faces the monumental task of leading the country of 180 million people out of its sea of problems, including widespread power outages and militant attacks. During a speech to parliament, Sharif focused on how he’d right the country’s ailing economy but also called for an end to CIA drone strikes against militants in Pakistan’s tribal areas.

Sharif received 244 votes in the 342-seat parliament, returning him to the prime minister’s office for an unprecedented third time. Sharif, who was deposed in a military coup in 1999, will later Wednesday be sworn in by the president.

During the speech to lawmakers, Sharif emphasized that fixing the country’s economy — specifically the blackouts, unemployment and corruption — was his top priority.

“I will do my best to change the fate of the people and Pakistan,” he said.

Though the speech focused mostly on domestic and economic issues close to the hearts and pocketbooks of most Pakistanis, Sharif did touch on the country’s often-tenuous relationship with the U.S.

Specifically, he called for an end to the drone strikes used by the U.S. to kill militants in the tribal areas bordering Afghanistan to the west.

“This daily routine of drone attacks, this chapter shall now be closed,” Sharif said to widespread applause in the parliament hall. “We do respect others’ sovereignty. It is mandatory on others that they respect our sovereignty.”

But he gave few details on how he might bring about an end to the strikes, which many in Pakistan have called an affront to the country’s sovereignty.

The U.S. considers the strikes vital to battling militants such as al Qaeda, who use the tribal areas of Pakistan as a safe haven. Sharif’s comments are in line with previous statements he has made calling for an end to the controversial strikes.

The vote in the National Assembly was something of a formality after Sharif’s party’s victory in the May 11 parliamentary elections.

Yet it marked a turnaround for the 63-year-old Sharif, who served two terms in the 1990s before being ousted from office in the 1999 military coup. He spent nearly eight years in exile, mostly in Saudi Arabia, and five years in the opposition before regaining the prime minister’s office.

The former ruling Pakistan People’s Party and the party of cricketer-turned-politician Imran Khan also fielded candidates against Sharif for the vote in parliament but the outcome was never in question.

But if the vote was easy, solving the problems that Pakistan faces will not be. As the new premier, Sharif will face a mountain of problems, including militant attacks and an unprecedented power crisis.

Over the last five years of the previous administration, power outages — some as long as 20 hours — have plagued the country. People suffer through sweltering summers, and in recent years gas shortages in the winter have left people unable to heat their houses.

Companies struggle to find a way to run businesses without a reliable source of electricity.

Sharif and his team of advisors, well aware that they were elected on the expectation that they’d solve this issue, have been meeting continuously with officials from the country’s power-related industries and interim government officials from affected ministries.

“We will do whatever is possible to overcome the energy crisis,” said Sharif’s brother, Shehbaz Sharif, while speaking to reporters in the capital of Islamabad. Sharif’s brother is expected to be elected Thursday as chief minister of Punjab province, the PML-N’s stronghold.

When it comes to ties with the U.S., Sharif has sent mixed messages about what type of relationship he’ll pursue.

The U.S. and Pakistan have differed in the past over how to best pursue peace in Afghanistan and how to deal with militants in Pakistan’s tribal areas.

Loading... Loading... Loading... Loading... Loading... Loading...

During an interview with reporters shortly after his election, Sharif said he wants good relations with the United States but criticized American drone strikes on militants as a violation of the country’s sovereignty.

After an American drone strike killed the deputy commander of the Pakistani Taliban, Waliur Rehman, last Wednesday, Sharif expressed “deep disappointment” in the strike. The statement called the strike a violation of Pakistan’s sovereignty and international law.

Sharif and his party have also been accused of failing to go after sectarian groups who have a fairly open presence in Punjab province, despite the fact that Sharif’s PML-N has controlled the province and its police for the last five years.

Sharif has also advocated for talks with the Pakistani Taliban, who’ve been trying to overthrow the Pakistani government, instead of military operations against them.

Read more about: