Nexium contains a substance called esomeprazole. This belongs to a group of medicines called proton pump inhibitors. These work by reducing the amount of acid that your stomach produces.