After the proclamation of the First Brazilian Republic, Mallet joined the Revolta da Armada, in opposition to then-President of Brazil Floriano Peixoto. He was then arrested and exiled in the city of Tabatinga, in Amazonas. After amnesty was given, he returned to Rio.