During the Reapers' War or Catalan Revolt, the French occupied Catalonia and appointed viceroys to govern the territory in the name of the King of France, recognized as Count of Barcelona by the Catalan institutions.