Villanueva retired in 2005, at the age of 90, to dedicate the rest of his life to his family and writing. In May 2005, with the death of his cousin Ana Maria, he also assumed the title of family patriarch. Villanueva died of a heart attack in Lima on 14 April 2013 at the age of 97.