Founded by Alexander the Great on the Mediterranean coast in 322 b.c. , Alexandria was capital of Egypt during the Ptolemaic era .
Alexandria was the capital of Egypt in the Ptolemaic era , after it was founded by Alexander the Great in 322 b.c. on the Mediterranean coast .