marshmallow is a demulcent herb, meaning it seems to work by decreasing inflammation and forming a barrier against irritants such as stomach acid. more. demulcents herbs may be used to treat indigestion and heartburn.