in 1985 villanueva was elected to the peruvian senate and elected as the president of the senate from july 1986 to july 1987. during the presidency of alan garcía, he served as prime minister from 1988 to 1989. in 1990, villanueva was elected to his last term in the senate, from 1990 to 1992 when alberto fujimori shut down congress.