The decline of the Egyptian empire set in with the collapse of the New Kingdom. Egypt was repeatedly invaded by the Babylonians, Assyrians, Persians, and finally by Alexander the Great. Alexander founded the city of Alexandria. It later became one of the greatest cultural centers of the ancient world during the reign of Ptolemy, one of the generals of Alexander. Ptolemy was the founder of the last dynasty of Egypt.