Trick-or-treating grew out of several old European customs where people went door to door for food in exchange for prayers or performances, and it only turned into the kid-and-candy ritual people know today in the early 1900s, especially in the United States.

Ancient and medieval roots

  • Many historians trace the roots to the Celtic festival of Samhain (around October 31), when people believed spirits could cross into the world of the living and customs developed around honoring or placating the dead.
  • In the Middle Ages, a practice called souling emerged: poor people, often children, went door to door on or near October 31 offering prayers for the souls of the dead in exchange for food or small payments.

From souling to guising

  • Over time, souling blended with more playful customs, and children began dressing in costume and offering songs, jokes, or short performances in return for food or coins, a practice known as guising , especially in Scotland and Ireland.
  • This shift from purely religious prayers to entertainment made the door-to-door visit feel closer to a performance-for-treats deal than a church-related ritual.

Crossing the ocean to America

  • Irish and Scottish immigrants brought souling and guising traditions with them to North America in the 19th century, combining them with other autumn customs already present, like Guy Fawkes Night and harvest celebrations.
  • By the early 20th century, children in parts of the U.S. and Canada were dressing up and visiting neighbors for treats, but the practice was still local and not yet a widespread, standardized ritual.

The “trick” in trick-or-treat

  • In the late 1800s and early 1900s, Halloween in North America had a strong pranking side: youths often pulled mischievous stunts, from knocking over outhouses to soaping windows.
  • The phrase “trick or treat” captured a kind of bargain: adults gave treats to avoid having tricks (pranks) played on them, turning potential vandalism into a controlled, playful exchange at the front door.

How it became the modern candy night

  • By the 1920s–1930s, communities and civic groups promoted organized door-to-door visiting as a way to channel Halloween energy into safer fun, helping formalize trick-or-treating as a children’s activity.
  • After World War II, with sugar rationing over and mass-produced candy booming, trick-or-treating exploded in popularity; by the 1950s it was entrenched in North America as a kid-focused night of costumes and candy.

Why it’s still evolving

  • Today, people adapt trick-or-treating with things like trunk-or-treat events in parking lots, teal pumpkins for allergy-friendly treats, and adjusted hours for safety, showing the tradition is still changing with social norms.
  • Despite these changes, the core idea remains recognizable to its medieval ancestors: go door to door around the end of October, offer a little performance or presence, and receive a treat in return.

Information gathered from public forums or data available on the internet and portrayed here.