A refrigerator comprising: a cabinet defining a storage compartment; a door configured to open and close the storage compartment; and a door opening device configured to open the door, wherein the door opening device includes a motor, and a pushing member configured to be withdrawn out by the motor to thereby open the door, wherein the pushing member includes: a first rack configured to be driven by the motor, the first rack being configured to push one of the cabinet or the door, characterised in that the pushing member further includes a second rack configured to be driven by the motor and slidably coupled to the first rack, the second rack at least partially overlapping with the first rack, and wherein the first rack is configured to move relative to the second rack in a first direction to open the door to a first angle, and to move together with the second rack in the first direction to move the door to a second angle greater than the first angle, and in that the door opening device further includes: a first transferring member provided in the first rack and provided to selectively protrude toward the second rack to restrict or allow simultaneous withdrawal of the first rack and the second rack, wherein the first rack and the second rack are simultaneous withdrawn by the first transferring member after relative withdrawal of the first rack. a cabinet defining a storage compartment; a door configured to open and close the storage compartment; and a door opening device configured to open the door, wherein the door opening device includes a motor, and a pushing member configured to be withdrawn out by the motor to thereby open the door, wherein the pushing member includes: a first rack configured to be driven by the motor, the first rack being configured to push one of the cabinet or the door, characterised in that the pushing member further includes a second rack configured to be driven by the motor and slidably coupled to the first rack, the second rack at least partially overlapping with the first rack, and wherein the first rack is configured to move relative to the second rack in a first direction to open the door to a first angle, and to move together with the second rack in the first direction to move the door to a second angle greater than the first angle, and in that the door opening device further includes: a first transferring member provided in the first rack and provided to selectively protrude toward the second rack to restrict or allow simultaneous withdrawal of the first rack and the second rack, wherein the first rack and the second rack are simultaneous withdrawn by the first transferring member after relative withdrawal of the first rack. a first rack configured to be driven by the motor, the first rack being configured to push one of the cabinet or the door, characterised in that the pushing member further includes a second rack configured to be driven by the motor and slidably coupled to the first rack, the second rack at least partially overlapping with the first rack, and wherein the first rack is configured to move relative to the second rack in a first direction to open the door to a first angle, and to move together with the second rack in the first direction to move the door to a second angle greater than the first angle, and in that the door opening device further includes: a first transferring member provided in the first rack and provided to selectively protrude toward the second rack to restrict or allow simultaneous withdrawal of the first rack and the second rack, wherein the first rack and the second rack are simultaneous withdrawn by the first transferring member after relative withdrawal of the first rack. a first transferring member provided in the first rack and provided to selectively protrude toward the second rack to restrict or allow simultaneous withdrawal of the first rack and the second rack, wherein the first rack and the second rack are simultaneous withdrawn by the first transferring member after relative withdrawal of the first rack.