A fort stood here until 1812 , when British and Spanish troops blew it up while dislodging the French during Spain 's War of Independence , leaving only ruins .
There used to be a fort until 1812 but the troops blew it up .