Gregorio García de la Cuesta Gregorio García de la Cuesta y Fernández de Celis ( May 9 , 1741 – 1811 ) was a prominent Spanish general of the Peninsular War . Early career . Born in La Lastra , Cantabria , to a family of petty nobles , Cuesta entered military service in 1758 as a member of the Spanish Royal Guard s Regiment . He saw several successes as a Lieutenant General during the War of the Pyrenees in the years 1793 to 1795 . On 20 December 1795 , he led 8 , 000 Spanish and Portuguese in a successful attack on the French port of Collioure . Cuesta ' s force killed or captured 4 , 000 of the 5 , 000 defenders . He led a division under José Urrutia y de las Casas at the successful battle of Bàscara on 14 June 1795 . His corps of 7 , 000 to 9 , 000 troops captured 1 , 500 Frenchmen at Puigcerdà on 26 July . The following day , he fell upon and seized the town of Bellver with its 1 , 000 - man French garrison . Unknown to Cuesta , both actions occurred after the Peace of Basel had been signed on 22 July 1795 . Political intrigues prevented further advancement until the turmoil of 1805 produced his appointment to Commander in Chief of the Army of Castile . Peninsular War . When war with France broke out in 1808 , Cuesta was already 67 years old , his army was ramshackle , ill - trained and underequipped . His hastily - recruited force of 5 , 000 militia stood little chance against the Grande Armée and was heavily defeated at Cabezón , forcing Cuesta ' s withdrawal from his seat of command at Valladolid . Cuesta managed to combine what was left of his army with Lieutenant General Blake ' s Army of Galicia but , pulling rank and insisting on a foolhardy march on Valladolid , left his new force vulnerable to a French counterattack . Paralyzed by disunity of command , the pair were defeated on 14 July at the Battle of Medina de Rioseco when Cuesta failed to close the gap between his troops and Blake ' s . Negotiations with the Central Junta led to Cuesta ' s brief promotion to Commander - in - Chief of the Spanish Army . In the absence of a military and political command structure , strategy and coordination with other Spanish forces proved impossible . He was soon sacked and arrested due to political machinating by his opponents . Following the loss of Madrid to Napoleon at the Battle of Somosierra the situation in Spain became more desperate and Cuesta was allowed to reconstitute the Army of Extremadura in order to defend the southern frontier . In defiance of the military wisdom of the time Cuesta pursued an offensive as soon as he had constructed a fighting force . This met with success . In January and February 1809 , all of Badajoz was reclaimed from the French . Cuesta was refused supplies and reinforcements until local authorities could review the appointments he had made to the army . As a result , a French offensive in the Spring annulled Cuesta ' s previous gains . On 26 March , Cuesta was badly wounded and trampled by cavalry , and his army savagely defeated , at the Battle of Medellín . Like Blücher after him , he continued fighting as a near - invalid . Cuesta joined forces with the British army under Wellington . Relations with his British allies were difficult , Cuesta promising and then failing to supply the British troops more than once , much to Wellesley ' s irritation . Further difficulties arose in the aftermath of the Battle of Talavera . Though the Anglo - Spanish army won the costly battle , Wellington planned for a withdrawal to stop Nicolas Soult and 30 , 000 French troops cutting him off from Portugal . Cuesta refused to co - operate . Later , Wellington was furious when he heard that Cuesta abandoned the injured British soldiers Wellesley left in his care to the French as prisoners . More Spanish defeats followed as Cuesta attempted to fight the French without co - ordinating with his allies or attempting to gain prior advantage . In 1810 , Cuesta suffered a serious stroke from which he died in retirement a year later . Cuesta ' s reputation was that of a hopelessly proud , arrogant , xenophobic , and reactionary officer . While his personal bravery was never in question , Cuesta ' s reputation suffered during and after the war , due mainly to his lack of understanding the deficiencies of the Spanish army but also his behaviour to fellow officers and allies . His arrogance led him to attempt to fight the veteran French army head on with several disastrous results .