Its situation induced the legates of Pompey in Spain to make it the key of their defense against Caesar, in the first year of the Civil War (49 BC). Afranius and Marcus Petreius threw themselves into the place with five legions; and their siege by Caesar himself (Battle of Ilerda), as narrated in his own words, forms one of the most interesting passages of military history. The resources exhibited by the great general, in a contest where the formation of the district and the very elements of nature seemed in league with his enemies, have been frequently extolled; but no epitome can do justice to the campaign. It ended by the capitulation of Afranius and Petreius, who were conquered as much by Caesar's generosity as by his strategy. In consequence of the battle, the Latin phrase "Ilerdam videas" is said to have been used by people who wanted to cast bad luck on someone else.