Conventional temporal focusing-based multiphoton excitation microscopy (TFMPEM) can offer widefield optical sectioning with an axial excitation confinement (AEC) of a few microns. Herein, a developed TFMPEM with a digital micromirror device (DMD), acting as the blazed grating for light spatial dispersion and simultaneous patterned illumination, has been extended to implement spatially modulated illumination at structured frequency and orientation. By implementing the spatially modulated illumination, the beam coverage at the back-focal aperture of the objective lens can be increased. As a result, the AEC can be condensed from 3.0 μm to 1.5 μm in full width at half maximum for a 2-fold enhancement. Furthermore, by using HiLo microscopy with two structured illuminations at the same spatial frequency but different orientation, biotissue images according to the structured illumination with condensed AEC is obviously superior in contrast and scattering suppression.