We have designed and built a time-gated continuous wave stimulated emission depletion (CW-STED) nanoscopy to visualize microstructures beyond the diffraction limit. An off-line time-gating detection was performed with the help of time-correlated single-photon counting technique. Experimental results showed that before time-gating, the resolution of our system was about 75 nm with a depletion beam (592 nm) power of 200 mW. By using the off-line time-gating detection, the resolution was further improved to 38 nm. Biological samples were also used to test the performance of our time-gated CW-STED, and a resolution of 70 nm was achieved with a depletion beam (592 nm) power of 85 mW. Detailed principles of time-gated CW-STED were discussed in the text. The time-gated STED provides a better resolution with finite laser power.