In 1808, Emperor Napoleon I of France forced King Charles IV of Spain and his son Ferdinand to abdicate and installed his brother, Joseph Bonaparte on the throne. When the Spanish people revolted against this high-handed behavior, French armies again invaded the country in the Peninsular War. The fourth and last Siege of Roses occurred in 1808. During the operation, the Scottish Royal Navy captain, Thomas Cochrane assisted the Spanish by putting his men into "Castell de la Trinitat" to help defend the town. The Scot stayed until the citadel and the town surrendered, before evacuating himself and his men. In 1814, when the defeated French withdrew from Spain, they blew up the town's fortifications along with the "Castell de la Trinitat". At this time, the ancient town, called the "Ciutadella", was completely ruined. Meanwhile, to the east the modern town slowly continued to grow.