This work was inspired by a previous report (Janjua et al. J. Phys. Chem. A 2009, 113, 3576-3587) in which the nonlinear-optical (NLO) response strikingly improved with an increase in the conjugation path of the ligand and the nature of hexamolybdates (polyoxometalates, POMs) was changed into a donor by altering the direction of charge transfer with a second aromatic ring. Herein, the first theoretical framework of POM-based heteroaromatic rings is found to be another class of excellent NLO materials having double heteroaromatic rings. First hyperpolarizabilities of a large number of push-pull-substituted conjugated systems with heteroaromatic rings have been calculated. The β components were computed at the density functional theory (DFT) level (BP86 geometry optimizations and LB94 time-dependent DFT). The largest β values are obtained with a donor (hexamolybdates) on the benzene ring and an acceptor (-NO(2)) on pyrrole, thiophene, and furan rings. The pyrrole imido-substituted hexamolybdate (system 1c) has a considerably large first hyperpolarizability, 339.00 × 10(-30) esu, and it is larger than that of (arylimido)hexamolybdate, calculated as 0.302 × 10(-30) esu (reference system 1), because of the double aromatic rings in the heteroaromatic imido-substituted hexamolybdates. The heteroaromatic rings act as a conjugation bridge between the electron acceptor (-NO(2)) and donor (polyanion). The introduction of an electron donor into heteroaromatic rings significantly enhances the first hyperpolarizabilities because the electron-donating ability is substantially enhanced when the electron donor is attached to the heterocyclic aromatic rings. Interposing five-membered auxiliary fragments between strong donor (polyanion) or acceptor (-NO(2)) groups results in a large computed second-order NLO response. The present investigation provides important insight into the NLO properties of (heteroaromatic) imido-substituted hexamolybdate derivatives because these compounds exhibit enhanced hyperpolarizabilities compared to typical NLO arylimido hexamolybdates and heterocyclic aromatic rings reported in the literature.