Private or personal libraries made up of non-fiction and fiction books (as opposed to the state or institutional records kept in archives) appeared in classical Greece in the 5th century BC. The celebrated book collectors of Hellenistic Antiquity were listed in the late 2nd century in Deipnosophistae:
Polycrates of Samos and Pisistratus who was tyrant of Athens, and Euclides who was himself also an Athenian and Nicorrates of Samos and even the kings of Pergamos, and Euripides the poet and Aristotle the philosopher, and Nelius his librarian; from whom they say our countryman Ptolemæus, surnamed Philadelphus, bought them all, and transported them, with all those which he had collected at Athens and at Rhodes to his own beautiful Alexandria. All these libraries were Greek; the cultivated Hellenized diners in Deipnosophistae pass over the libraries of Rome in silence. By the time of Augustus there were public libraries near the forums of Rome: there were libraries in the Porticus Octaviae near the Theatre of Marcellus, in the temple of Apollo Palatinus, and in the Bibliotheca Ulpiana in the Forum of Trajan. The state archives were kept in a structure on the slope between the Roman Forum and the Capitoline Hill.
Private libraries appeared during the late republic: Seneca inveighed against libraries fitted out for show by illiterate owners who scarcely read their titles in the course of a lifetime, but displayed the scrolls in bookcases (armaria) of citrus wood inlaid with ivory that ran right to the ceiling: "by now, like bathrooms and hot water, a library is got up as standard equipment for a fine house. Libraries were amenities suited to a villa, such as Cicero's at Tusculum, Maecenas's several villas, or Pliny the Younger's, all described in surviving letters. At the Villa of the Papyri at Herculaneum, apparently the villa of Caesar's father-in-law, the Greek library has been partly preserved in volcanic ash; archaeologists speculate that a Latin library, kept separate from the Greek one, may await discovery at the site.
In the West, the first public libraries were established under the Roman Empire as each succeeding emperor strove to open one or many which outshone that of his predecessor. Unlike the Greek libraries, readers had direct access to the scrolls, which were kept on shelves built into the walls of a large room. Reading or copying was normally done in the room itself. The surviving records give only a few instances of lending features. As a rule, Roman public libraries were bilingual: they had a Latin room and a Greek room. Most of the large Roman baths were also cultural centers, built from the start with a library, a two room arrangement with one room for Greek and one for Latin texts.
Libraries were filled with parchment scrolls as at Library of Pergamum and on papyrus scrolls as at Alexandria: the export of prepared writing materials was a staple of commerce. There were a few institutional or royal libraries which were open to an educated public (such as the Serapeum collection of the Library of Alexandria, once the largest library in the ancient world), but on the whole collections were private. In those rare cases where it was possible for a scholar to consult library books there seems to have been no direct access to the stacks. In all recorded cases the books were kept in a relatively small room where the staff went to get them for the readers, who had to consult them in an adjoining hall or covered walkway.
In the 6th century, at the very close of the Classical period, the great libraries of the Mediterranean world remained those of Constantinople and Alexandria. Cassiodorus, minister to Theodoric, established a monastery at Vivarium in the heel of Italy with a library where he attempted to bring Greek learning to Latin readers and preserve texts both sacred and secular for future generations. As its unofficial librarian, Cassiodorus not only collected as many manuscripts as he could, he also wrote treatises aimed at instructing his monks in the proper uses of reading and methods for copying texts accurately. In the end, however, the library at Vivarium was dispersed and lost within a century.
Through Origen and especially the scholarly presbyter Pamphilus of Caesarea, an avid collector of books of Scripture, the theological school of Caesarea won a reputation for having the most extensive ecclesiastical library of the time, containing more than 30,000 manuscripts: Gregory Nazianzus, Basil the Great, Jerome and others come studied there.
With education firmly in Christian hands, however, many of the works of classical antiquity were no longer considered useful.[ Old texts were washed off and the valuable parchment and papyrus were reused, forming palimpsests. As scrolls gave way to the new book-form, the codex was universally used for Christian literature. Old manuscript scrolls were cut apart and used to stiffen leather bindings