The reaction between two water molecules to produce hydronium ion and hydroxide ion is known as autoprotolysis of water. This is self ionization of water.
2H2O→H3O++OH−
This reaction indicates the amphoteric nature of water. It can act as an acid as well as a base. One water molecule donates electron whereas other water molecule accepts electron.