The invention presents a method for operating a horizontal axis wind turbine (1), the wind turbine comprising a tower (2) and a rotor (5) with at least one rotor blade (51), the rotor being connected to the tower, and being adapted to drive a generator (6) connected to a utility grid (8), wherein a pitch angle (A) of each rotor blade is adjustable, the method comprising detecting (905, 911), when the wind turbine is in an idling power producing situation in relation to the utility grid, a tower oscillation, and controlling (907, 913, 914, 915), when the wind turbine is in the idling power producing situation, the pitch angle of the at least one rotor blade so as to produce aerodynamic forces counteracting the detected tower oscillation.