Lieutenant-General John Whitelocke, the newly arrived overall commander, subsequently launched an ill-advised and mismanaged assault on Buenos Aires in which the companies of both battalions of the 95th were involved as part of the Light Brigade, commanded by Robert Craufurd. During the assault on Buenos Aires on 5 July, the 95th and the rest of the British force suffered heavy casualties in bitter fighting to capture the city. The Light Brigade had suffered so heavily that they had to take refuge in a church and were surrendered soon after. Whitelocke eventually surrendered his force. After Whitelocke negotiated the withdrawal of British forces, the men were released and they returned home later that year. The 95th would go on to fight for near the entirety of the Peninsular War in Spain. In the aftermath of the disastrous expedition, Popham and Whitelocke were court-martialed, with Popham reprimanded and Whitelocke dismissed from the Army.