At that time, two Roman generals were fighting to be the leaders of the Roman Republic. They were Pompey and Julius Caesar. Julius Caesar defeated Pompey at the Battle of Pharsalus in Greece, 48 BC. Pompey fled to Egypt from Pharsalus, and was murdered by the orders of Ptolemy.