Provided is a working machine including a device to be maintained and a winch disposed thereover and enabling a maintenance operation. The working machine includes a base machine, at least one device to be maintained installed at the base machine, and a winch which is driven to wind an operation rope. The winch is attached to the base machine to be pivotable, about a winch support shaft, between a use position at which the winch is used while closing at least a part of a maintenance space over the device to be maintained and a maintenance position at which the winch opens the maintenance space upward to enable the maintenance operation to be performed.