The Catalan Revolt in the mid-seventeenth century came about as a result of the continuing presence in Catalonia of Spanish troops during the Franco-Spanish War between the Kingdom of France and the Monarchy of Spain. Dalmau de Queralt, Count of Santa Coloma, who was the Spanish viceroy of Catalonia at the time, was assassinated by the rebels near the beginning of the revolt. After the war, the town returned to the control of the Queralt family.