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 1800 but the troops tore it down .