A refrigerator comprising: a cabinet configured to form a storage space; a first door rotatably coupled to a front surface of the cabinet to open or close the storage space, and having an open portion formed therein; a second door rotatably connected to the first door at a front surface of the first door; a pressing protrusion configured to protrude from a rear surface of the second door; a shelf rotatably mounted in the open portion; and a connection module provided in the first door and connected to a rotary shaft of the shelf to enable the shelf to be unfolded forward when the second door is opened and to stand to be folded when the second door is closed, the connection module configured to selectively contact the pressing protrusion, wherein the connection module comprises: a connection part connected to the rotary shaft of the shelf to integrally rotate with the rotary shaft of the shelf; characterized in that the connection module further comprises: a moving part connected to the connection part and configured to move forward and backward inside a guide hole formed in the first door when the connection part rotates, wherein, when the second door is opened and the shelf is in a horizontal state, a front surface of the moving part is exposed to an outside of the guide hole, wherein, when the second door rotates in a closing direction, the front surface of the moving part which is exposed to the outside of the guide hole is pressed by the pressing protrusion and moves backward to be inserted into the guide hole, wherein, when the moving part moves backward, the connection part rotates and the shelf rotates from the horizontal state to a vertical state, and wherein the connection module comprises a limiting member formed at the moving part and the guide hole respectively, to limit a forward moving distance of the moving part. a cabinet configured to form a storage space; a first door rotatably coupled to a front surface of the cabinet to open or close the storage space, and having an open portion formed therein; a second door rotatably connected to the first door at a front surface of the first door; a pressing protrusion configured to protrude from a rear surface of the second door; a shelf rotatably mounted in the open portion; and a connection module provided in the first door and connected to a rotary shaft of the shelf to enable the shelf to be unfolded forward when the second door is opened and to stand to be folded when the second door is closed, the connection module configured to selectively contact the pressing protrusion, wherein the connection module comprises: a connection part connected to the rotary shaft of the shelf to integrally rotate with the rotary shaft of the shelf; characterized in that the connection module further comprises: a moving part connected to the connection part and configured to move forward and backward inside a guide hole formed in the first door when the connection part rotates, wherein, when the second door is opened and the shelf is in a horizontal state, a front surface of the moving part is exposed to an outside of the guide hole, wherein, when the second door rotates in a closing direction, the front surface of the moving part which is exposed to the outside of the guide hole is pressed by the pressing protrusion and moves backward to be inserted into the guide hole, wherein, when the moving part moves backward, the connection part rotates and the shelf rotates from the horizontal state to a vertical state, and wherein the connection module comprises a limiting member formed at the moving part and the guide hole respectively, to limit a forward moving distance of the moving part. a connection part connected to the rotary shaft of the shelf to integrally rotate with the rotary shaft of the shelf; characterized in that the connection module further comprises: a moving part connected to the connection part and configured to move forward and backward inside a guide hole formed in the first door when the connection part rotates, wherein, when the second door is opened and the shelf is in a horizontal state, a front surface of the moving part is exposed to an outside of the guide hole, wherein, when the second door rotates in a closing direction, the front surface of the moving part which is exposed to the outside of the guide hole is pressed by the pressing protrusion and moves backward to be inserted into the guide hole, wherein, when the moving part moves backward, the connection part rotates and the shelf rotates from the horizontal state to a vertical state, and wherein the connection module comprises a limiting member formed at the moving part and the guide hole respectively, to limit a forward moving distance of the moving part. a moving part connected to the connection part and configured to move forward and backward inside a guide hole formed in the first door when the connection part rotates, wherein, when the second door is opened and the shelf is in a horizontal state, a front surface of the moving part is exposed to an outside of the guide hole, wherein, when the second door rotates in a closing direction, the front surface of the moving part which is exposed to the outside of the guide hole is pressed by the pressing protrusion and moves backward to be inserted into the guide hole, wherein, when the moving part moves backward, the connection part rotates and the shelf rotates from the horizontal state to a vertical state, and wherein the connection module comprises a limiting member formed at the moving part and the guide hole respectively, to limit a forward moving distance of the moving part.