A public execution is a form of capital punishment which "members of the general public may voluntarily attend." This definition excludes the presence of only a small number of witnesses called upon to assure executive accountability. The purpose of such displays has historically been to deter individuals from defying laws or authorities. Attendance at such events was historically encouraged and sometimes even mandatory.
The Crucifixion of Jesus, as depicted by James Tissot
Public garroting of 23-year-old Juan Oliva Moncusà [es], on 4 January 1879 at the Campo de Guardias in Madrid, for having attempted to assassinate [es] the King of Spain Alfonso XII.
2013 public hanging of the murderer Ali Mohammadzadeh in Iran
The Central Criminal Court of England and Wales, commonly referred to as the Old Bailey after the street on which it stands, is a criminal court building in central London, one of several that house the Crown Court of England and Wales. The street outside follows the route of the ancient wall around the City of London, which was part of the fortification's bailey, hence the metonymic name.
The Old Bailey in 2004
Newgate gaol in 1810. For much of its history, the "Old Baily" court (among other spellings seen) was attached to the jail.
An Old Bailey trial, c. 1808
Plaque commemorating Bushel's Case of 1670