A refrigerator comprising: a body having a storage space; and a door configured to open and close the storage space, wherein the door comprises: a first door rotatably connected to the body by a hinge ; a second door provided to be rotatable with respect to the first door ; a magnetic member provided at the body ; and a locking device provided at the first door and configured to interact with the magnetic member , wherein the locking device comprises a housing ; characterized in that the locking device comprises further: a movable member installed to be rotatable by a rotary shaft and configured to rotate in a first direction by an attraction with the magnetic member and to rotate in a second direction when the attraction with the magnetic member is removed; and a locking member rotatably connected to the movable member and configured to be accommodated in a locking recess of the second door through the first door when the movable member rotates in the second direction. a body having a storage space; and a door configured to open and close the storage space, wherein the door comprises: a first door rotatably connected to the body by a hinge ; a second door provided to be rotatable with respect to the first door ; a magnetic member provided at the body ; and a locking device provided at the first door and configured to interact with the magnetic member , wherein the locking device comprises a housing ; characterized in that the locking device comprises further: a movable member installed to be rotatable by a rotary shaft and configured to rotate in a first direction by an attraction with the magnetic member and to rotate in a second direction when the attraction with the magnetic member is removed; and a locking member rotatably connected to the movable member and configured to be accommodated in a locking recess of the second door through the first door when the movable member rotates in the second direction. a first door rotatably connected to the body by a hinge ; a second door provided to be rotatable with respect to the first door ; a magnetic member provided at the body ; and a locking device provided at the first door and configured to interact with the magnetic member , wherein the locking device comprises a housing ; characterized in that the locking device comprises further: a movable member installed to be rotatable by a rotary shaft and configured to rotate in a first direction by an attraction with the magnetic member and to rotate in a second direction when the attraction with the magnetic member is removed; and a locking member rotatably connected to the movable member and configured to be accommodated in a locking recess of the second door through the first door when the movable member rotates in the second direction. a movable member installed to be rotatable by a rotary shaft and configured to rotate in a first direction by an attraction with the magnetic member and to rotate in a second direction when the attraction with the magnetic member is removed; and a locking member rotatably connected to the movable member and configured to be accommodated in a locking recess of the second door through the first door when the movable member rotates in the second direction. <EOS>