Complex sentence: On November 7,1865, because of his unwillingness to declare war against Spain and his discredit for having signed the Vivanco-Pareja Treaty, Peruvian President Juan Antonio Pezet was forced out of office and replaced by his vice president, General Pedro Diez Canseco.
Split into simpler sentences: On November 7,1865, due to his unwillingness to declare war against Spain and vilification arising from his signing of the Vivanco-Pareja Treaty, Peruvian President Juan Antonio Pezet was forced out of office. He was replaced by his vice president, General Pedro Diez Canseco.