A slewing-type working machine, including a base, an upper slewing body, a hydraulic motor slewing the upper slewing body, a hydraulic pump, a slewing operation device, a control valve controlling the hydraulic motor, pipe-lines connecting the hydraulic motor to the control valve, a hydraulic pressure source, communication valves switching communication and cutoff between the pipe-lines and a tank by pilot pressure, an electric motor, an electric storage device, communication selector valves on inlet sides of the communication valves, a switching control valve on an inlet side of the communication selector valves, and a controller. During slewing deceleration, the controller signals to switch the switching control valve to a connecting position and switch the communication selector valves to a pilot pressure supply position. In a slewing stopped state, the controller signals to switch the communication selector valves to a cutoff position and switch the communication valves to a communication cutoff position.