During the Catalan Revolt started in 1640, on 17 January of 1641, Pau Claris, president of the Deputation of the General (or Generalitat) of Catalonia proclaimed, according with the General Estates of Catalonia, the Catalan Republic under French protection for the first time.
On January 26, 1641, at the end of the battle of Montjuïc, the army of Philip IV was defeated and had to withdraw.