Because of the presence of O-H group in them, alcohols are capable of forming hydrogen bonds with water molecules whereas hydrocarbons cannot form hydrogen bonds with water. As a result, alcohols are more soluble in water than the hydrocarbons of comparable molecular masses.