The ancient world
Before there was a word for it, there were people who said the gods were made in our image, or that nothing could be known about them, or that they existed but took no interest in us, or that nothing of us survives death. Athens punished some of them. A Buddhist sutra preserved an Indian materialist's teaching in order to refute it, and a Han scholar argued that ghosts do not exist. One Roman poem carried the argument through a thousand years of silence.
The lives

Ajita Kesakambali
Ajita Kesakambali was a teacher in the Ganges valley in the Buddha's lifetime, around 500 BCE on the older dating. He taught that a person is four elements and nothing more, and that gifts and sacrifices earn nothing. He taught that no holy man knows of another world, and that the wise and the foolish alike are annihilated at death. No motive, life or writing of his survives. We know the teaching only because the Buddhists who rejected it wrote it down, with their answer that a man who teaches it has no reason to be a holy man. The Jains recorded a teaching very like it, and the later Cārvāka school, often made his heir, is also known mostly through its enemies.

Protagoras
Protagoras was a paid teacher from Abdera who moved in Pericles's circle at Athens. He opened his book On the Gods by saying that he could not know whether the gods exist or not, because the question is obscure and life is short. He doubted, and he did not deny. Writers centuries later say that Athens burned the book and drove him out, and that he drowned on the way to Sicily. Plato, writing in the decades after his death, says nothing of a trial. He has Socrates remark, to score a point against the sophists' enemies, that Protagoras kept a good name to the end. The sources cannot settle it.

Diagoras of Melos
Diagoras of Melos was a poet whose lost songs for the gods were remembered as devout. At some time between 423 and about 417 BCE the comic stage of Athens could say "the Melian" and mean a man who taught that there was no Zeus. In 415 or 414 Athens accused him of belittling the Mysteries of Eleusis and put a price on his head. The city was frightened by the mutilation of the herms, and it was less than two years since it had destroyed his island. He fled and died abroad. No word of his own survives. The one ancient story of how he lost his belief, a rival's false oath that went unpunished, was written down fourteen centuries later. The sources leave open whether he denied the gods, denied only that they answer prayer and punish wrong, or was punished for being a Melian.

Prodicus of Ceos
Prodicus of Ceos was the fee-taking sophist famous for fine distinctions and for the fable of the Choice of Heracles. He left no surviving word on the gods. Later writers report that he explained them as the ancients' names for what fed and helped them: bread as Demeter, wine as Dionysus, the Nile as a god. From the first century BCE and later they listed him among the "so-called atheists". His unbelief is a theory that others reported and a label that others fixed on him, and he is not known to have declared it himself.

Critias
Critias was an Athenian aristocrat and poet, a companion of Socrates and a relative of Plato. In 404 BCE, after Athens lost the Peloponnesian War, he became one of the Thirty who ruled the city, and Xenophon says that he pressed them toward wholesale killing. He was killed in battle against the democrats the next year. He left no word of his own about the gods. Yet some six hundred years later, Sextus Empiricus counted him among the atheists and quoted a speech from a play, in which the trickster Sisyphus says that a clever man invented the fear of gods to stop crimes done in secret. Ancient and modern readers have given that speech either to Critias or to Euripides, so his unbelief rests on a speech that may or may not be his.

Epicurus
Epicurus was a schoolboy on Samos. By his own account he took up philosophy at fourteen, when his teachers could not explain where Hesiod's Chaos came from. In the Garden at Athens he taught that the gods exist, blessed and untroubled by us, and that they neither punish nor reward nor hear a prayer. He taught that death is nothing to us. So the two great fears, of the sky and of death, could be cured by understanding nature. He kept the festivals and the offerings while denying that anything done at an altar could move a god. Nothing that survives shows him revising any of it. His critics, from Cicero's Cotta to Lactantius, said that a god who does nothing is no god, and that he had kept the name only to avoid unpopularity.

Theodorus the Atheist
Theodorus of Cyrene was trained in the Cyrenaic school of pleasure and in the art of argument, and ancient writers remembered him as "the Atheist". He wrote a book on the gods that is lost. He had to leave Athens, and he was expelled at least once from Cyrene. He answered a king who threatened his life with jokes. The writers who called him an atheist did not all take his denial in the same way. To Cicero and Plutarch he denied that any god exists. To Clement of Alexandria he had suspected that the gods the Greeks worshipped were an error.

Xunzi
Xunzi was the most respected Confucian teacher of the third century BCE, and almost nothing is known of his life. What survives is the view itself, in the book that bears his name. It says that Heaven keeps a constant course and answers no one, that a falling star is a rare event and no warning, and that it rains whether or not people sacrifice for rain. He kept the sacrifices, the funerals and the divination all the same, and wrote that a gentleman performs them as a human practice while the common people take them for serving spirits. Within a century of his death a Han statesman, Lu Jia, kept his Heaven without a will and found a new reason to read strange events as warnings.

Euhemerus
Euhemerus, a friend of King Cassander of Macedon, wrote a book called the Sacred Record around 300 BCE. It said that Uranus, Kronos and Zeus had been early kings, and that their deeds were written on a golden pillar on Panchaea, an island no one else ever found. The book is lost, and nothing records what he himself believed. The two surviving accounts of the book never have him deny that gods exist. He is known only through later readers. The Greek geographers called him a liar, Plutarch said he had spread atheism, and Theophilus called him an atheist. Clement, Lactantius and Augustine used him as a witness that the pagan gods had been men.

Lucretius
Almost nothing is known of Lucretius beyond his poem. He took Epicurus as his master, and neither the poem nor any ancient writer says when or why. He wrote one unfinished poem to free its reader from religio, by which he meant the fear of the gods and of punishment after death. He kept the gods, far off and indifferent, and he never used the word atheist. The label was given him by Christian readers and by the cardinal who answered him. The poem holds one view from start to finish. What changed was its fortune. A Christian chronicler replaced the poet's life with a story of a love potion and a suicide. The text came down the Middle Ages in a handful of copies. The one Poggio found in a monastery in 1417 became the parent of almost every Renaissance copy, and so the poem came back to be printed, imitated and answered.

Wang Chong
Wang Chong was a poor Confucian scholar of Kuaiji, and the later history says that he read his way through the bookshops of Luoyang. He could not accept much of what the books and sayings of his day taught, and in his fifties he wrote the Lunheng to weigh those teachings against what can be observed. He argued that Heaven has no mouth or eyes, does not rebuke rulers and does not hear prayer. He argued that thunder is fire and not anger, and that the dead have no consciousness and do not become ghosts. He kept the sacrifices as a way of showing gratitude, and he kept fate and omens as natural signs that nobody sends. He wrote partly to stop ruinous funerals. He never recanted. In old age he tried to prolong his life and ended by accepting that people, like animals, live a while and die.

Lucian of Samosata
Lucian was a Syrian who escaped a sculptor's workshop for rhetoric, and then gave up on philosophy. He left no account of losing his belief in the gods. The nearest thing is a speech he gave to a character. It is about a boy who found the poets' gods quite proper and a man who could not square them with the laws. In his forties he wrote comedies in which the gods of Olympus fear that men will decide they are absent or indifferent. In his own voice he laughed at sacrifice, at oracles and at the poets' underworld. He was nearly beaten by Cynics and nearly drowned by a prophet for it. Late in life he declared for Epicurus and put a fraud's miserable death down to chance, not providence. He never called himself an atheist, and the one character of his who is asked outright answers that the gods may exist. What the texts show is a man who denied that gods need sacrifices, answer prayers, send oracles or punish, and who would not say more than that.