Enhancement of relativistic third-harmonic generation by using an optically preformed periodic plasma waveguide was achieved. Resonant dependence of harmonic intensity on plasma density and density modulation parameters was observed, which is a distinct c