A work machine comprising: an articulated-type work implement ; a plurality of hydraulic actuators that drive the work implement ; an operation device that instructs the work implement to operate depending on operation performed by an operator; a controller that executes machine control of operating the work implement in accordance with a predetermined condition in a case in which the work implement is positioned in a first area set above a target surface set as desired, and that does not execute the machine control in a case in which the work implement is positioned in a second area set above the first area ; and a display device on which a positional relationship between the target surface and the work implement is displayed, wherein the controller decides operation of the work implement on a basis of an operation amount of the operation device ; and displays, on the display device , a positional relationship among the work implement , the target surface and a boundary line between the first area and the second area ; characterized in that the controller executes the machine control while changing a position of the boundary line depending on a result of the decision of the operation of the work implement ; and changes a display position of the boundary line on the display device , depending on the result of the decision of the operation of the work implement . an articulated-type work implement ; a plurality of hydraulic actuators that drive the work implement ; an operation device that instructs the work implement to operate depending on operation performed by an operator; a controller that executes machine control of operating the work implement in accordance with a predetermined condition in a case in which the work implement is positioned in a first area set above a target surface set as desired, and that does not execute the machine control in a case in which the work implement is positioned in a second area set above the first area ; and a display device on which a positional relationship between the target surface and the work implement is displayed, wherein the controller decides operation of the work implement on a basis of an operation amount of the operation device ; and displays, on the display device , a positional relationship among the work implement , the target surface and a boundary line between the first area and the second area ; decides operation of the work implement on a basis of an operation amount of the operation device ; and displays, on the display device , a positional relationship among the work implement , the target surface and a boundary line between the first area and the second area ; characterized in that the controller executes the machine control while changing a position of the boundary line depending on a result of the decision of the operation of the work implement ; and changes a display position of the boundary line on the display device , depending on the result of the decision of the operation of the work implement . executes the machine control while changing a position of the boundary line depending on a result of the decision of the operation of the work implement ; and changes a display position of the boundary line on the display device , depending on the result of the decision of the operation of the work implement . <EOS>