A water purifier according to an embodiment of the present invention may include a housing accommodating components for generating cold water and/or hot water; and a water chute which protrudes from a front surface of the housing, in which the water chute includes a water cock through which cold water or hot water flows; and a light emitting element which is mounted on the water cock to emit ultraviolet rays, in which the water cock includes a water inflow part which extends in a transverse direction and has a water inflow passage formed therein; and a water outflow part which extends in a direction intersecting the water inflow part at an end of the water inflow part and has a water outflow passage formed therein, in which the light emitting element is disposed on the upper side of the water outflow part, and in which the water outflow passage includes a sloping part having a shape in which a cross-sectional diameter thereof gradually decreases toward the lower end thereof.