Pharmakos
A pharmakós (Greek: φαρμακός, plural pharmakoi) in Ancient Greek religion was the ritualistic sacrifice or exile of a human scapegoat or victim.
Ritual
A slave, a cripple or a criminal was chosen and expelled from the community at times of disaster (famine, invasion or plague) or at times of calendrical crisis. It was believed that this would bring about purification. On the first day of the Thargelia, a festival of Apollo at Athens, two men, the Pharmakoi, were led out as if to be sacrificed as an expiation.
Some scholia state that pharmakoi were actually sacrificed (thrown from a cliff or burned), but many modern scholars reject this, arguing that the earliest source for the pharmakos (the iambic satirist Hipponax) shows the pharmakoi being beaten and stoned, but not executed. A more plausible explanation would be that sometimes they were executed and sometimes not, depending on the attitude of the victim. For instance, a deliberate unrepentant murderer would most likely be put to death.