Bananas may be able to help protect you against stomach ulcers, or help to treat existing ones. This is due to certain compounds in bananas creating a thick protective barrier in the stomach that can help defend against the damaging effects of excess hydrochloric acid.
On top of this, bananas also contain protease inhibitors that can help to eliminate a specific bacteria in the stomach that is found to cause ulcers to develop in the first place.