Two-dimensional (2D) NbOI2 demonstrates significant second-harmonic generation (SHG) with a high conversion efficiency. To unlock its full potential in practical applications, it is desirable to modulate the SHG behavior while utilizing the intrinsic lattice anisotropy. Here, we demonstrate direction-specific modulation of the SHG response in NbOI2 by applying anisotropic strain with respect to the intrinsic lattice orientations, where more than 2-fold enhancement in the SHG intensity is achieved under strain along the polar axis. The strain-driven SHG evolution is attributed to the strengthened built-in piezoelectric field (polar axis) and the enlarged Peierls distortions (nonpolar axis). Moreover, we provide quantifications of the correlation between strain and SHG intensity in terms of the susceptibility tensor. Our results demonstrate the effective coupling of orientation-specific strain to the anisotropic SHG response through the intrinsic polar order in 2D nonlinear optical crystals, opening a new paradigm toward the development of functional devices.