Caesar then pursued pompeys soldiers into Spain and defeated them at the bettle of Ilerda

Caesar then pursued pompeys soldiers into Spain and defeated them at the bettle of Ilerda, although a major portion of army, including pompey escaped. Caesar continued his pursuit into Greece, resulting into the decisive battles of Pharsalus in 48 B.C.