The Library of Alexandria was founded in the early 3rd century BCE by Ptolemy I Soter — the Macedonian general who took control of Egypt after the death of Alexander the Great — and developed under his son Ptolemy II Philadelphus. It was part of the Mouseion (Museum) — a great research institution dedicated to the Muses, housing scholars in residence who were provided with food, lodging and salaries by the Ptolemaic state. The Library was its central resource.
The Ptolemaic project was explicitly imperial and comprehensive: to gather all the books in the world. Ships arriving in Alexandria's harbour had their books confiscated and copied — the originals kept, copies returned to their owners. Ambassadors were sent across the Mediterranean world to purchase texts. The library allegedly borrowed the official Athenian state copies of the plays of Aeschylus, Sophocles and Euripides, paying a large deposit — and then kept the originals and returned copies, forfeiting the deposit. This aggressive acquisitiveness produced the largest collection of written knowledge in the ancient world.
Estimates of the Library's holdings range from 400,000 to 700,000 scrolls — but these numbers require care. Ancient "books" were typically much shorter than modern ones; a single Homeric epic might occupy one scroll, or might be divided across several. The number of distinct works was probably smaller than the scroll count suggests, and many works existed in multiple copies and variant editions. Still, by any measure the collection was extraordinary — the accumulated written knowledge of Greek, Egyptian, Persian, Jewish, Indian and other traditions, gathered in a single place.
The Library was served by a series of distinguished librarians — scholars of the first rank, appointed by the Ptolemaic rulers. Among them: Callimachus of Cyrene, who created the Pinakes — the first systematic catalogue of Greek literature, organized by genre and author, running to 120 volumes — a foundational act in the history of bibliography. Eratosthenes of Cyrene, who calculated the circumference of the earth to within a few percent of the correct value using only a stick, the shadow it cast and a measurement between two Egyptian cities. Apollonius of Rhodes, who wrote the Argonautica. These were not librarians in the modern sense of custodians of existing knowledge — they were the greatest scholars of their age, and the Library was their laboratory.