Late in 48 BC, he was appointed dictator again, with a term of one year. Caesar then pursued Pompey to Egypt, where Pompey was soon murdered. Caesar then became involved in an Egyptian civil war between the child pharaoh and his sister, wife, and co-regent queen, Cleopatra. Perhaps as a result of the pharaoh's role in Pompey's murder, Caesar sided with Cleopatra. He is reported to have wept at the sight of Pompey's head, which was offered to him by the pharaoh as a gift. In any event, Caesar defeated the pharaoh's forces in 47 BC and installed Cleopatra as ruler.