The very first marshmallows were used as a kind of lozenge made from marshmallow root sap, eggs, and sugar, but in time, the candy became a fluffy, kid-friendly confection and the plant root was replaced with gelatin. The spongy candies took off with American youth due in part to a series of "flirting" events held in coastal towns.