A refrigerator, comprising a water dispensing device , wherein the water dispensing device comprises: a water tank , connected with an external water source, for storing and supplying drinking water; a drain pipeline , connected with the water tank ; a beverage making chamber , provided at one end of the drain pipeline away from the water tank , in which a capsule support for receiving a beverage powder capsule and a capsule piercing structure for puncturing the capsule operatively are provided; a dispenser , provided on a door of the refrigerator and communicated with an outlet of the beverage making chamber , and comprising a beverage outlet of which the prepared beverage flows out; a heater which is provided between the water tank and the beverage making chamber , to allow drinking water heated to flow into the beverage making chamber ; the refrigerator being characterized in that the water dispensing device further comprises a first selector which is provided between the heater and the beverage making chamber , for selectively controlling the water heated by the heater either to be introduced into the beverage making chamber , or to directly flow out of a hot water outlet provided at the dispenser ; and wherein the water dispensing device is provided as a module integrally embedded in the door, a foam layer is provided in the door, the water dispensing device is provided between the surface of the door and the foam layer, the dispenser is provided with an accommodation portion for receiving the heater , and wherein the accommodation portion is provided at a rear of the dispenser and with heat dissipation holes for dissipating heat from the heater . a water tank , connected with an external water source, for storing and supplying drinking water; a drain pipeline , connected with the water tank ; a beverage making chamber , provided at one end of the drain pipeline away from the water tank , in which a capsule support for receiving a beverage powder capsule and a capsule piercing structure for puncturing the capsule operatively are provided; a dispenser , provided on a door of the refrigerator and communicated with an outlet of the beverage making chamber , and comprising a beverage outlet of which the prepared beverage flows out; a heater which is provided between the water tank and the beverage making chamber , to allow drinking water heated to flow into the beverage making chamber ; the refrigerator being characterized in that the water dispensing device further comprises a first selector which is provided between the heater and the beverage making chamber , for selectively controlling the water heated by the heater either to be introduced into the beverage making chamber , or to directly flow out of a hot water outlet provided at the dispenser ; and wherein the water dispensing device is provided as a module integrally embedded in the door, a foam layer is provided in the door, the water dispensing device is provided between the surface of the door and the foam layer, the dispenser is provided with an accommodation portion for receiving the heater , and wherein the accommodation portion is provided at a rear of the dispenser and with heat dissipation holes for dissipating heat from the heater . <EOS>