The mayor of Mexico City has resigned in order to pursue the presidency in next year 's national elections .