A refrigerator comprising: a cabinet equipped with a compartment; a compartment door (20, 30) including a main door, connected to the cabinet, and configured to open and close the compartment; a door opening device (25, 70) provided inside an opening device accommodation part at the compartment door and having a driving motor (73, 261); wherein the door opening device (25, 70) comprises a plurality of gears (262, 263, 264, 265, 266, 751, 752, 753, 754, 761, 762), and a push rod (27, 77) which is moveable by the plurality of gears against the cabinet to open the door (20, 30); a controller configured to control the door opening device (25, 70), wherein the controller activates the door opening device (25, 70) to open the compartment door (20, 30) in response to a door opening signal, characterized in that the refrigerator further comprises: a switch magnet provided at one side of the door (20, 30) and rotated with the door; a reed switch provided at one side of a hinge which is rotatably supporting the door and selectively turned on and off by the switch magnet in accordance with the opening and closing of the door; wherein the reed switch is switched off in a state in which the main door is opened, and the controller controls the driving motor (73, 261) not to operate even when the door open signal is input in a state in which the reed switch is switched off. a cabinet equipped with a compartment; a compartment door (20, 30) including a main door, connected to the cabinet, and configured to open and close the compartment; a door opening device (25, 70) provided inside an opening device accommodation part at the compartment door and having a driving motor (73, 261); wherein the door opening device (25, 70) comprises a plurality of gears (262, 263, 264, 265, 266, 751, 752, 753, 754, 761, 762), and a push rod (27, 77) which is moveable by the plurality of gears against the cabinet to open the door (20, 30); a controller configured to control the door opening device (25, 70), wherein the controller activates the door opening device (25, 70) to open the compartment door (20, 30) in response to a door opening signal, characterized in that the refrigerator further comprises: a switch magnet provided at one side of the door (20, 30) and rotated with the door; a reed switch provided at one side of a hinge which is rotatably supporting the door and selectively turned on and off by the switch magnet in accordance with the opening and closing of the door; wherein the reed switch is switched off in a state in which the main door is opened, and the controller controls the driving motor (73, 261) not to operate even when the door open signal is input in a state in which the reed switch is switched off. a switch magnet provided at one side of the door (20, 30) and rotated with the door; a reed switch provided at one side of a hinge which is rotatably supporting the door and selectively turned on and off by the switch magnet in accordance with the opening and closing of the door; wherein the reed switch is switched off in a state in which the main door is opened, and the controller controls the driving motor (73, 261) not to operate even when the door open signal is input in a state in which the reed switch is switched off.