A simple and efficient methodology for the nucleophilic aromatic substitution of nitrogen-containing fused heterocycles with interesting biological activities has been developed in an environmentally sound manner using polyethylene glycol (PEG-400) as the solvent, leading to the expected compounds in excellent yields in only five minutes.