The tradition of trick-or-treating dates back to medieval times, when young people in Scotland and Ireland dressed up in costumes, went from door to door and asked for food. In exchange, they would sing songs or recite poems. This was known as “guising”.