Is water an element or compound?

Is water an element or compound?