Graham's rearguard division, meanwhile, was attacked by two of Victor's divisions. Graham split his force into two brigades; one to face each of the approaching French divisions. In the ensuing battle, Graham's forces beat off the French attacks despite la Peña entrenching his larger force on the isthmus to Cádiz and refusing to aid his British allies. La Peña further refused to pursue the retreating French troops, allowing them to resume the siege on Cádiz. The siege was not lifted until 24 August 1812.