Who did Caesar fight at the battle of pharsallus?

Caesar fought Pompey at Pharsllus.