Alexandria, named after Alexander the Great, was founded around 331 BC. For nearly 300 years, it was the capital of the Ptolemaic dynasty in Egypt. Some famous ancient Greek scientists, such as Euclid of Alexandria and Eratosthenes, lived there or studied there. It was home to the largest library in the ancient Western world, the Library of Alexandria. 