In ancient Mayan kitchens, there were built-in cotton candy machines. These machines were made of stone and were powered by a foot pedal. The Mayans used a mixture of honey and corn syrup to create their cotton candy. The cotton candy was a popular treat during religious ceremonies and festivals.