The challenge occurred during a trip to Switzerland in 1816, during a period of bad weather that forced them to stay indoors. To pass the time, the group decided to hold a contest to see who could write the best ghost story. This led to the creation of several famous works, including Mary Shelley's *Frankenstein* and John Polidori's *The Vampyre*.