 Pharaoh Ptolemy XII Auletes had been deposed in a rebellion led by his daughter Berenice IV in 58 BC, forcing him to seek asylum in Rome.During Pompey's conquests years earlier, Ptolemy had received the support of Pompey, who named him an ally of Rome.Gabinius' invasion sought to restore Ptolemy to his throne.