 Spain was the only country to protest over the First Partition of Poland, and in 1795, following the final Third Partition of Poland, Spanish diplomat Don Domingo de Yriarte was one of the last foreign diplomats to vacate his post in Warsaw.During the Peninsular War (1809–1814) in Spain, a number of Polish soldiers fought on the side of Napoleon.The Vistula Legion gained fame at the Battle of Saragossa.