A marshmallow is a kind of confection that, in its modern form, consists of sugar, egg whites, gelatin, water, and air. In former times one of its ingredients was the root of the marsh mallow, a shrubby herb from which it takes its name.