We demonstrate a method to electrically control the spin polarization in a diluted magnetic semiconductor (DMS) quantum well (QW) on a micrometer length scale. A variable magnetic field generated from a microscale current loop atop a single CdMnTe/CdMgTe QW magnetizes the Mn 2þ ion spins in the DMS QW and, via the sp-d exchange interaction, polarizes the spins of photon-generated carriers. In the absence of an external field, the spin polarization can be switched on a time scale clearly below 1 ns.