The invention discloses a water purifier. The water purifier comprises a composite waterway structure with a plurality of water outlets, a filter element which is fixed to a filter element pedestal and communicates with the filter element pedestal, a universal water outlet structure, a shell, a slide connection pedestal, a composite waterway structure, a slide module, a locking module, a plurality of flowmeters arranged on water channels, and a controller, wherein the filter element comprises a cascade filtration structure; the universal water outlet structure communicates an outside water inlet pipe with a water inlet channel and communicates an outside water outlet pipe with a water outlet channel, and can rotate relatively; the shell is composed of a pedestal, a front cover and a back cover; the slide module can enable the composite waterway structure to slide on the top surface of the pedestal; the locking module can lock the composite waterway structure and the pedestal; and the controller is electrically connected with the flowmeters through wires and used for monitoring and recording the water flow, and can reset the flow number. By improving the waterway structure, filter element, water outlet structure, shell, filter element replacement mode and filter element service life detection mode, the working and use effects of the obtained water purifier are obviously enhanced.