A construction machine that includes: a main body including a lower track structure and an upper swing structure provided swingably with respect to the lower track structure; a front work implement of articulated type attached to the upper swing structure and including a plurality of front members (8, 9, 10) pivotably connected to each other; and a plurality of actuators (5, 6, 7) that individually drive the plurality of front members (8, 9, 10) of the front work implement, the construction machine comprising: a posture sensor that is provided on each of the front members (8, 9, 10) of the front work implement and detects posture information of the front member (8, 9, 10); an external environment recognition device that detects an object around the main body; characterised in: a controller configured to calculate a dead angle range that is a range that becomes a dead angle from a recognition range of the external environment recognition device, the dead angle arising from an object recognized by the external environment recognition device, to calculate an assumed movement range that is a range within which a moving body assumed to exist in the dead angle is movable in a period of time determined in advance, to calculate a movable range that is a range within which the front work implement is movable in a period of time determined in advance on a basis of the posture information detected by the posture sensor, and to perform preventive control for preventing contact between the moving body and the front work implement on a basis of the assumed movement range of the moving body and the movable range of the front work implement. a main body including a lower track structure and an upper swing structure provided swingably with respect to the lower track structure; a front work implement of articulated type attached to the upper swing structure and including a plurality of front members (8, 9, 10) pivotably connected to each other; and a plurality of actuators (5, 6, 7) that individually drive the plurality of front members (8, 9, 10) of the front work implement, the construction machine comprising: a posture sensor that is provided on each of the front members (8, 9, 10) of the front work implement and detects posture information of the front member (8, 9, 10); an external environment recognition device that detects an object around the main body; characterised in: a controller configured to calculate a dead angle range that is a range that becomes a dead angle from a recognition range of the external environment recognition device, the dead angle arising from an object recognized by the external environment recognition device, to calculate an assumed movement range that is a range within which a moving body assumed to exist in the dead angle is movable in a period of time determined in advance, to calculate a movable range that is a range within which the front work implement is movable in a period of time determined in advance on a basis of the posture information detected by the posture sensor, and to perform preventive control for preventing contact between the moving body and the front work implement on a basis of the assumed movement range of the moving body and the movable range of the front work implement. a posture sensor that is provided on each of the front members (8, 9, 10) of the front work implement and detects posture information of the front member (8, 9, 10); an external environment recognition device that detects an object around the main body; characterised in: a controller configured to calculate a dead angle range that is a range that becomes a dead angle from a recognition range of the external environment recognition device, the dead angle arising from an object recognized by the external environment recognition device, to calculate an assumed movement range that is a range within which a moving body assumed to exist in the dead angle is movable in a period of time determined in advance, to calculate a movable range that is a range within which the front work implement is movable in a period of time determined in advance on a basis of the posture information detected by the posture sensor, and to perform preventive control for preventing contact between the moving body and the front work implement on a basis of the assumed movement range of the moving body and the movable range of the front work implement.