A water purifier comprising: a water quality sensor configured to measure a water quality value of water supplied from a water supply source, wherein the water quality sensor includes at least one of a total dissolved solids sensor, a turbidity sensor, and an ion sensor and the water quality value corresponds to the amount of ions contained in the water or the turbidity of the water; a first filter configured to filter, by a first method, water supplied to the first filter to remove fine contaminants; a second filter configured to filter, by a second method different to the first method, water supplied to the second filter; a first water purifying line, which includes a first water purifying line front end formed at the front end of the first filter and a first water purifying line rear end formed at the rear end of the first filter between the first filter and a water discharge line to provide the water filtered by the first filter to the water discharge line; a second water purifying line, which includes a second water purifying line front end formed at the front end of the second filter and a second water purifying line rear end formed at the rear end of the second filter between the second filter and the water discharge line to provide the water filtered by the second filter to the water discharge line; a flow path shifting valve configured to be controlled to selectively supply water that is supplied from the water supply source to only one of the first filter via the first water purifying line front end and the second filter via the second water purifying line front end; and a processor configured to control the flow path shifting valve based on the water quality value measured by the sensor, wherein the first method is a direct-type water purification method according to which the first filter is directly connected to the point of use, so that the water filtered by the first filter can be supplied directly to a user, without having to be stored first in a water storage tank, and the second method is a reverse osmosis water purification method, and wherein the processor is further configured to control the flow path shifting valve to, based on the measured water quality value being less than a predetermined water quality value, supply the water supplied from the water supply source to the first water purifying line front end, the first filter, the first water purifying line rear end, and the water discharge line, and based on the water quality value being greater than the predetermined water quality value, supply the water supplied from the water supply source to the second water purifying line front end, the second filter, the second water purifying line rear end, and the water discharge line. a water quality sensor configured to measure a water quality value of water supplied from a water supply source, wherein the water quality sensor includes at least one of a total dissolved solids sensor, a turbidity sensor, and an ion sensor and the water quality value corresponds to the amount of ions contained in the water or the turbidity of the water; a first filter configured to filter, by a first method, water supplied to the first filter to remove fine contaminants; a second filter configured to filter, by a second method different to the first method, water supplied to the second filter; a first water purifying line, which includes a first water purifying line front end formed at the front end of the first filter and a first water purifying line rear end formed at the rear end of the first filter between the first filter and a water discharge line to provide the water filtered by the first filter to the water discharge line; a second water purifying line, which includes a second water purifying line front end formed at the front end of the second filter and a second water purifying line rear end formed at the rear end of the second filter between the second filter and the water discharge line to provide the water filtered by the second filter to the water discharge line; a flow path shifting valve configured to be controlled to selectively supply water that is supplied from the water supply source to only one of the first filter via the first water purifying line front end and the second filter via the second water purifying line front end; and a processor configured to control the flow path shifting valve based on the water quality value measured by the sensor, wherein the first method is a direct-type water purification method according to which the first filter is directly connected to the point of use, so that the water filtered by the first filter can be supplied directly to a user, without having to be stored first in a water storage tank, and the second method is a reverse osmosis water purification method, and wherein the processor is further configured to control the flow path shifting valve to, based on the measured water quality value being less than a predetermined water quality value, supply the water supplied from the water supply source to the first water purifying line front end, the first filter, the first water purifying line rear end, and the water discharge line, and based on the water quality value being greater than the predetermined water quality value, supply the water supplied from the water supply source to the second water purifying line front end, the second filter, the second water purifying line rear end, and the water discharge line.