Affiliated with the United Left Party, he was the mayor of Lima from 1984 to 1986. During his mayoral term, he was known as El Frejolito (Little Bean) and was known for his campaign to ensure a daily glass of milk for every child in Lima. This program still survives today.