To provide a work machine that can make minimum passes over a target area without leaving any tasks with flexible steering operations. A controller 10 mounted on a motor-driven lawn mower 1 determines intersections between a contour service path and a pair of straight service paths that are adjacent to each other in which the motor-driven lawn mower 1 travels along the straight service paths in opposite directions, and sets (records) a turning behavior including backward movement of the motor-driven lawn mower connecting the adjacent intersections in a configuration file. The information recorded in the configuration file is read during the operation to move the motor-driven lawn mower along the contour service path 50 and the straight service paths on anywhere other than the aforementioned intersections and to turn in accordance with the turning behavior when the motor-driven lawn mower reaches one of the intersections.