Sánchez ran for the presidency in the 2026 Peruvian general election. During the campaign he was charged with false statement in an administrative procedure and with falsifying information about contributions, in connection with questions about how his assets changed between 2017 and 2026.
He presented himself as a defender of Castillo, describing the former president as a victim of a coup during the 2022 institutional crisis. He pledged to free Castillo from prison if elected and proposed a constituent assembly to write a new constitution. He often appeared at public events wearing a chotano hat that Castillo had given him during a prison visit.
In the first round, held in April 2026, his position in the tabulation rose from sixth place in the early count to second by 15 April, a change that observers linked to slower reporting from remote rural areas where he had strong support. He advanced to a runoff against Keiko Fujimori. He named the economist Pedro Francke as a possible economy minister, and Francke said a Sánchez government would respect the autonomy of the Central Reserve Bank of Peru and would not carry out nationalizations. After weeks of counting, Sánchez lost the runoff to Fujimori by a narrow margin, and he then called for protests and alleged voter fraud.