A tissue resecting device includes a handle, a shaft assembly movably attached to the handle, a housing secured to a distal end of the shaft, and an electrode. The electrode is disposed in the housing to move across a window, and at least one motor in the handle both reciprocates the shaft assembly relative to the handle and drives the electrode across the window.