Organic compounds are defined as those that contain carbon. Inorganic compounds do not contain carbon, but they may contain other elements such as hydrogen, oxygen, nitrogen, and sulfur.
H2O is composed of two hydrogen atoms and one oxygen atom, so it is an inorganic compound.