The plan worked. This week the Special Electoral Jury for Central Lima accepted the resignation of Luis Rubio, Renovación Popular’s candidate for Lima mayor, allowing Rafael López Aliaga, its candidate for deputy mayor (teniente alcalde), to step in in his place. If elected, López Aliaga, who failed to reach the second round of presidential elections, can now return to his old job. The electoral law prohibits the re-election of mayors.

The election for governors and mayors takes place on 4 October. 4 August was the last date by which were candidates were allowed to bow out.

Roberto Burneo, the president of the Jurado Nacional Electoral, admitted this week that this was a loophole in the rules to prevent re-election, but was not in itself illegal. He made clear that this was not a responsibility of the JNE but of the legislature which had left open the door to re-election de facto when this otherwise went contrary to reforms made previously to the constitution.

Following the first round, López Aliaga turned down his election as a senator in his bid to keep his old job, arguably the most important elective office in Peru after the president with one-third of all Peruvians living in metropolitan Lima. Commenting on Rubio’s decision to withdraw his candidacy, and surely not without some irony, he said he reacted “with deep sadness” and that Rubio’s decision was for “very personal circumstances”.

Other mayors keen to follow the López Aliaga path to re-election include the mayors of Lima districts San Miguel, Independencia, San Juan de Lurigancho, El Agustino, Los Olivos, Santa Rosa and Lurín. Nationwide, 53 instances have been identified.