The gummy bear originated in Germany in the 1920s when Hans Riegel created the first gummy candy. Inspired by dancing bears at festivals, he crafted the chewy, bear-shaped treat. It gained popularity worldwide, evolving into a beloved confection enjoyed by all ages.