Nanostructures such as plasmonic nanoparticles, nanowires, and metasurfaces can strongly localize electromagnetic fields, resulting in enhanced HHG. These structures can be engineered to optimize the nonlinear interactions required for HHG, thus making it possible to achieve high conversion efficiencies and control over the harmonic spectrum.