Ribas became involved in the Conspiracy of 1808, but was taken prisoner after its failure.
When the Revolution of 19 April 1810 was taking place, it was reported that Ribas was seen travelling throughout the entire city, encouraging people to join-in the demonstrations against Spanish rule.