After this victory, he was appointed dictator for 10 years. Pompey's sons escaped to Hispania; Caesar gave chase and defeated the last remnants of opposition in the Battle of Munda in March 45 BC. During this time, Caesar was elected to his third and fourth terms as consul in 46 BC and 45 BC (this last time without a colleague).