 José Miguel Pey, the new president of the Supreme Junta, ordered the arrest of the viceroy and his wife.A few days later, on August 1, a communication was received from the Supreme Junta of Seville ordering him to turn over his office to a new viceroy, Francisco Javier Venegas.