Updated

Comedians in Peru ridicule his American accent and his longstanding ties to Wall Street anger some in an impoverished nation increasingly hostile toward foreign mining companies.

But despite being labeled a foreigner, Pedro Pablo Kuczynski is positioning himself to become Peru's next president after coming from behind in the polls to finish runner-up in the first round of voting. He'll face Keiko Fujimori, the daughter of disgraced former President Alberto Fujimori, in a June 5 runoff vote.

While Fujimori is seen as the front-runner after almost doubling Kuczynski's vote tally, the race is expected to be competitive. One poll, taken before Sunday's balloting, even gave Kuczynski a slight edge as Peruvians fear a return of authoritarian rule with Fujimori, whose father is serving a 25-year sentence for corruption and sanctioning death squads during the fight against Maoist-inspired rebels.

It's a dramatic turnaround for someone who until a few years ago was contemplating a quiet retirement in the United States.

PPK, as Kuczynski is universally known in Peru, entered politics accidentally. After earning an economics degree from Oxford University, he went to work for Peru's central bank.

His technocrat's career was cut short in 1968, when he lost his job during a military coup. He spent much of the next three decades in the United States working first at the World Bank and then for First Boston International, later acquired by Credit Suisse, and on the boards of several companies and private equity firms.

He returned to Peru following Fujimori's resignation in 2000 and went on to serve twice as finance minister as well as Cabinet chief under former President Alejandro Toledo.

Friends say that he began to think seriously about running for president after creating a nonprofit organization, Agua Limpia, in 2007 to deliver drinking water to impoverished areas of Peru. There he saw up close the lack of managerial skills in Peru's public sector and decided he could make a difference, said Carlos Rojas, CEO of Andino Asset Management, a Lima-based brokerage.

"He's not someone who as a boy dreamed one day of becoming president," said Rojas, who served with Kuczynski on the board of a fishing company.

In 2011, he shocked much of the political establishment by finishing a strong third in that year's presidential election.

At the time, he threw his support behind Keiko Fujimori to prevent the election of Ollanta Humala, an ally of socialist Venezuela who once led an army uprising. But after being elected, Humala governed with the same pro-business framework of his predecessors and Kuczynski never had to execute what, at the time, he told a journalist was his "escape plan" of retiring on a farm in the U.S.

"No question he could have a cushy life if he stayed out of politics," said Michael Shifter, president of the Washington-based Inter-American Dialogue, who lived in Peru in the late 1980s and early 1990s. "But he got the bug, especially after last election, when he exceeded expectations. It's heady stuff."

His business dealings have drawn controversy. Leftists accused him of a conflict of interest when, as Cabinet chief in 2005, he pushed through regulatory changes that allowed Dallas-based Hunt Oil, a firm he previously advised, to export large quantities of natural gas to Mexico over the objection of local communities.

"I don't believe in his integrity if while governing he'll be promoting foreign direct investment," said Cesar Hildebrandt, one of Peru's most-influential columnists.

He's also been scolded for having an American passport, and under pressure renounced his U.S. citizenship last year. His first wife was the daughter of a U.S. Congressman and his current spouse, Nancy Lange, is a relative of Hollywood actress Jessica Lange. Fujimori's husband, who she met while studying abroad, is also American, so Peru's next first spouse will be an American no matter who wins June's runoff vote.

Despite the elite pedigree, Kuczynski has deep Peruvian roots as well.

His parents arrived in Peru in the 1930s, fleeing Nazi Germany. His Jewish-Polish father, a pathologist, pioneered the treatment of leprosy in Peru. A campaign slogan proudly proclaims that he's "Gringo on the Outside, Cholo on the Inside," a term referring to the indigenous ancestry of most Peruvians. At rallies, he entertains crowds by playing flute renditions of Andean classics.

But even allies recognize his popular appeal is limited, especially against Keiko Fujimori's well-oiled ground game, which handed her victory in 16 of Peru's 24 electoral districts. Kuczynski prevailed in just one.

While the polarizing legacy of Alberto Fujimori's 1990-2000 government is likely to dominate the campaign — almost half of Peruvians say they'll never vote for anyone associated with the former strongman — picking up the anti-Fujimori votes won't be automatic.

The third-place finisher, leftist Veronika Mendoza, hasn't endorsed either candidate, reflecting the view that Kuczynski is just a more-democratic promoter of the free-market policies blamed for rising tensions in communities dominated by foreign mining projects.

At 77, Kuczynski would also be Peru's oldest president. Some rivals question his health, but his doggedness in coming back from under 7 percent in the polls would seem to support his oft-repeated claim he remains vital and young at heart.

"My aunts lived until they were 95, so I figure I've got like 20 years left," he said at a campaign stop in late March.

"But I won't spend 10 years in office," he added in a not-so subtle dig at his opponent's democratic credentials. "I'll govern only five to achieve our country's development."

___

Franklin Briceno on Twitter at https://twitter.com/franklinbriceno. His work can be found at: http://bigstory.ap.org/author/franklin-briceno .

Joshua Goodman is on Twitter: https://twitter.com/apjoshgoodman His work can be found at http://bigstory.ap.org/journalist/joshua-goodman

___

Goodman reported from Bogota, Colombia. AP Writer Jacobo Garcia from Bogota and Hannah Dreier from Caracas contributed to this report.