Provided is a refrigerator (10). The refrigerator (10) includes a main body (11) having a storage space, a door (14) opening or closing the storage space, a dispenser (20) provided in the door (14) to dispense cooled water and
purified water, a
purified water input part (251) provided in the dispenser (20) to input a command for dispensing the
purified water, a cooled water input part (252) provided in the dispenser (20) to input a command for dispensing the cooled water, a dispensing amount input part (255) for setting an amount of purified water to be dispensed when the purified water is selected through the purified water input part (251), a filter device (40) provided within the storage space to purify water supplied from a
water supply source (1) outside the main body (11), a water tank (50) storing the water passing through the filter device (40), the water tank (50) configured to cool the stored water by using cool air within the storage space, a purified water passage (62) guiding the purified water filtered in the filter device (40) into the dispenser (20), a cooled water passage (63) guiding the cooled
water cooled in the water tank (50) into the dispenser (20), a purified water valve (622) controlling a
water flow in the purified water passage (62), and a cooled water valve (632) disposed in the cooled water passage (63) to control a
water flow in the cooled water passage (63). When the purified water is selected through the purified water input part (251), the purified water valve (622) is opened, and the cooled water valve (632) is closed, when an amount of water set through the dispensing amount input part (255) has been dispensed, the purified water valve (622) is closed, and when the cooled water is selected through the cooled water input part (252), the cooled water valve (632) is opened, and the purified water valve (622) is closed.