Passage: Electrolysis of water is the decomposition of water into oxygen and hydrogen gas due to an electric current being passed through the water. The reaction has a standard potential of − 1.23 V, meaning it ideally requires a potential difference of 1.23 volts to split water.

Question: Based on this passage, what happens when electrolysis is carried out in water?
Steam of consciousness below:

The important part for answering this question is: Electrolysis of water is the decomposition of water into oxygen and hydrogen gas due to an electric current being passed through the water.
So, the answer is the decomposition of water into oxygen and hydrogen gas due to an electric current being passed through the water.