Late in 48 BC, Caesar was again appointed dictator, with a term of one year. After spending the first months of 47 BC in Egypt, Caesar went to the Middle East, where he annihilated the king of Pontus; his victory was so swift and complete that he mocked Pompey's previous victories over such poor enemies. On his way to Pontus, Caesar visited Tarsus from 27 to 29 May 47 BC (25–27 Maygreg.), where he met enthusiastic support, but where, according to Cicero, Cassius was planning to kill him at this point. Thence, he proceeded to Africa to deal with the remnants of Pompey's senatorial supporters. 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.