The pillory is a device made of a wooden or metal framework erected on a post, with holes for securing the head and hands.
The stocks are similar but restrain the feet instead.
Both were used as a form of corporal punishment and public humiliation.
In 1816, use of the pillory was restricted in England to punishment for perjury or subornation.
Perjury (also known as forswearing) is the intentional act of swearing a false oath or falsifying an affirmation to tell the truth, whether spoken or in writing, concerning matters material to an official proceeding.