In 525 BC the Persian army of Cambyses II overran Cyrenaica, which for the next two centuries remained under Persian or Egyptian rule. Alexander the Great was greeted by the Greeks when he entered Cyrenaica in 331 BC, and Eastern Libya again fell under the control of the Greeks, this time as part of the Ptolemaic Kingdom.