A work machine comprising: a work implement having a work tool; a plurality of hydraulic actuators (5a, 6a, 7a) that drive the work implement; an operation device (15L, 15R) that gives an instruction about an operation amount of the plurality of hydraulic actuators (5a, 6a, 7a); and a controller having a semi-automatic control section that corrects the operation amount indicated by the instruction given by the operation device (15L, 15R), such that the work tool does not move down below a predetermined design surface, wherein the controller includes: a compaction determining section (52; 60) that determines whether or not the work tool is being pressed against a ground; and an actuator control correcting section (54; 62) that further corrects an operation amount having been corrected by the semi-automatic control section, such that a force that the work tool applies to the ground increases if the work tool is determined by the compaction determining section (52; 60) as being pressed against the ground, characterized in that: the controller further has a compaction distance determining section that determines whether or not a distance between the work tool and the predetermined design surface is shorter than a predetermined threshold, and if the distance between the work tool and the predetermined design surface is determined as being longer than the predetermined threshold, the actuator control correcting section (54; 62) further corrects the operation amount having been corrected by the semi-automatic control section, such that a force that the work tool applies to the ground becomes larger than in a case where the distance between the work tool and the predetermined design surface is shorter than the predetermined threshold. a work implement having a work tool; a plurality of hydraulic actuators (5a, 6a, 7a) that drive the work implement; an operation device (15L, 15R) that gives an instruction about an operation amount of the plurality of hydraulic actuators (5a, 6a, 7a); and a controller having a semi-automatic control section that corrects the operation amount indicated by the instruction given by the operation device (15L, 15R), such that the work tool does not move down below a predetermined design surface, wherein the controller includes: a compaction determining section (52; 60) that determines whether or not the work tool is being pressed against a ground; and an actuator control correcting section (54; 62) that further corrects an operation amount having been corrected by the semi-automatic control section, such that a force that the work tool applies to the ground increases if the work tool is determined by the compaction determining section (52; 60) as being pressed against the ground, characterized in that: the controller further has a compaction distance determining section that determines whether or not a distance between the work tool and the predetermined design surface is shorter than a predetermined threshold, and if the distance between the work tool and the predetermined design surface is determined as being longer than the predetermined threshold, the actuator control correcting section (54; 62) further corrects the operation amount having been corrected by the semi-automatic control section, such that a force that the work tool applies to the ground becomes larger than in a case where the distance between the work tool and the predetermined design surface is shorter than the predetermined threshold. a compaction determining section (52; 60) that determines whether or not the work tool is being pressed against a ground; and an actuator control correcting section (54; 62) that further corrects an operation amount having been corrected by the semi-automatic control section, such that a force that the work tool applies to the ground increases if the work tool is determined by the compaction determining section (52; 60) as being pressed against the ground, characterized in that: the controller further has a compaction distance determining section that determines whether or not a distance between the work tool and the predetermined design surface is shorter than a predetermined threshold, and if the distance between the work tool and the predetermined design surface is determined as being longer than the predetermined threshold, the actuator control correcting section (54; 62) further corrects the operation amount having been corrected by the semi-automatic control section, such that a force that the work tool applies to the ground becomes larger than in a case where the distance between the work tool and the predetermined design surface is shorter than the predetermined threshold. the controller further has a compaction distance determining section that determines whether or not a distance between the work tool and the predetermined design surface is shorter than a predetermined threshold, and if the distance between the work tool and the predetermined design surface is determined as being longer than the predetermined threshold, the actuator control correcting section (54; 62) further corrects the operation amount having been corrected by the semi-automatic control section, such that a force that the work tool applies to the ground becomes larger than in a case where the distance between the work tool and the predetermined design surface is shorter than the predetermined threshold.