Gate control of dynamic nuclear polarization under optical orientation is demonstrated in a Schottky-gated n-GaAs/AlGaAs (110) quantum well by time-resolved Kerr rotation measurements. Spin relaxation of electrons due to mechanisms other than the hyperfine interaction is effectively suppressed as the donor induced background electron density is reduced from metallic to insulating regimes. Subsequent accumulation of photoexcited electron spins dramatically enhances dynamic nuclear polarization at low magnetic field, allowing us to tune nuclear spin polarization by external gate voltages.