Seleucus II, the king of the north, attempted to invade Egypt in 242 BC but Ptolemy III defeated him.