 He was defeated by Titus Labienus at Ruspina on 4 January 46 BC but recovered to gain a significant victory at Thapsus on 6 April 46 BC over Cato, who then committed suicide.After this victory, he was appointed dictator for 10 years.Pompey's sons escaped to Spain; Caesar gave chase and defeated the last remnants of opposition in the Battle of Munda in March 45 BC.