An oven for cooking food, in particular a combined heat and microwave oven, the oven comprising: - a support structure; - a muffle placed inside the support structure; - a frame arranged around the muffle; - a door hinged to the support structure and comprising an edge suitable to be housed in the frame and placed in contact with the frame; - at least one tab attached to the door; - at least one hooking mechanism, which is mounted in the support structure, has a first and a second stable position, and is configure to be engaged and disengaged by the movable tab and to apply a force to the tab so as to pull the edge of the door towards the frame in the second stable position - at least one micro-switch, which is selectively operated by the hooking mechanism, wherein the hooking mechanism comprises: - a cam, which can be rotated about a given axis with respect to the support structure; - a spring, which has a first end connected at a first anchorage point to the support structure and a second end connected at a second anchorage point to the cam in such a way that the straight line passing through the first and second anchorage points (22, 23) is arranged on one side with respect to the said given axis in the first operating position and on the opposite side in the second operating position; characterized in that the hooking mechanism further comprises - a box, which is mounted integral with the support structure and is configured to support the micro-switch; said cam in rotation and anchor one end of the spring and together they form a pre-assembled assembly, which is configured to be subsequently mounted on the support structure. - a support structure; - a muffle placed inside the support structure; - a frame arranged around the muffle; - a door hinged to the support structure and comprising an edge suitable to be housed in the frame and placed in contact with the frame; - at least one tab attached to the door; - at least one hooking mechanism, which is mounted in the support structure, has a first and a second stable position, and is configure to be engaged and disengaged by the movable tab and to apply a force to the tab so as to pull the edge of the door towards the frame in the second stable position - at least one micro-switch, which is selectively operated by the hooking mechanism, wherein the hooking mechanism comprises: - a cam, which can be rotated about a given axis with respect to the support structure; - a spring, which has a first end connected at a first anchorage point to the support structure and a second end connected at a second anchorage point to the cam in such a way that the straight line passing through the first and second anchorage points (22, 23) is arranged on one side with respect to the said given axis in the first operating position and on the opposite side in the second operating position; characterized in that the hooking mechanism further comprises - a box, which is mounted integral with the support structure and is configured to support the micro-switch; said cam in rotation and anchor one end of the spring and together they form a pre-assembled assembly, which is configured to be subsequently mounted on the support structure. - a cam, which can be rotated about a given axis with respect to the support structure; - a spring, which has a first end connected at a first anchorage point to the support structure and a second end connected at a second anchorage point to the cam in such a way that the straight line passing through the first and second anchorage points (22, 23) is arranged on one side with respect to the said given axis in the first operating position and on the opposite side in the second operating position; characterized in that the hooking mechanism further comprises - a box, which is mounted integral with the support structure and is configured to support the micro-switch; said cam in rotation and anchor one end of the spring and together they form a pre-assembled assembly, which is configured to be subsequently mounted on the support structure.