The Library of Alexandria was founded in the early third century BCE, likely under Ptolemy I or his son Ptolemy II, as part of the broader Mouseion (Museum) research institution in the Egyptian city Alexander the Great had founded decades earlier. It became, over the following centuries, the largest and most significant library of the ancient Mediterranean world; ancient sources claimed anywhere from 400,000 to 700,000 scrolls at its height, though modern historians consider those specific figures likely inflated while still agreeing the collection was, for its era, unmatched — an extraordinary concentration of the ancient world's accumulated scientific, philosophical, literary, and historical knowledge, actively maintained by a community of scholars, translators, and copyists who worked to acquire, preserve, and expand the collection, including through a well-documented policy of confiscating and copying scrolls from ships that docked in Alexandria's harbor.
Contrary to the popular image of a single dramatic fire destroying the library in one catastrophic event, historians now generally understand its decline as a gradual process unfolding across several centuries, marked by multiple episodes of damage rather than one clean destruction. Julius Caesar's forces accidentally set fire to part of the Alexandria harbor during the Alexandrian War in 48 BCE, likely damaging some portion of the library's holdings, though the extent is debated. Centuries of subsequent political instability, reduced royal patronage under later Ptolemaic and then Roman rule, the religiously motivated destruction of the associated Serapeum temple complex in 391 CE amid conflict between Christian and pagan communities, and the general administrative and economic decline of the wider region all likely contributed to a slow attrition of both the physical collection and the institutional support needed to maintain and copy it, rather than any single fire being solely responsible.