Conservative candidate Keiko Fujimori has been declared the winner of Peru’s presidential race following a weeks-long vote count that ended with a razor-thin margin of victory in the deeply polarized South American country.

The country’s electoral office confirmed Friday that Fujimori, the eldest daughter of former President Alberto Fujimori, had won the June 7 runoff vote in what was her fourth bid for the presidency after unsuccessful campaigns in 2011, 2016 and 2021.

In a post on X after the official proclamation, Fujimori thanked voters for their support and said Peru was entering “a new chapter.” She pledged to lead the transition with “responsibility, humility and a profound sense of duty.”

The announcement comes days after Peru’s National Office of Electoral Processes released a final vote count showing her Popular Force party edged leftist candidate Roberto Sánchez of Together for Peru by just 49,641 ballots out of about 18 million, taking 50.13% of valid votes to Sánchez’s 49.86%.

Fujimori, 51, will be sworn in as president on July 28 and is expected to serve a five-year term alongside Luis Fernando Galarreta as first vice-president and Miguel Ángel Torres Morales as second vice-president.