Sodium alginate comes from brown seaweed. It is a soluble salt of alginic acid that gels quickly when it meets stomach acid.
This gel floats on top of stomach contents, creating a physical barrier that reduces acid irritation. People take it for occasional heartburn or acid reflux.