Abstract: Process for the production of doped polymers containing heteroaromatic 5-membered rings in which polymers of aromatic 5-ring membered heterocyclic compounds or low molecular weight compounds containing heterocyclic 5-membered rings are reacted with nitronium or nitrosonium salts, optionally in inert organic solvents, at temperatures of from -20.degree. C. to +80.degree. C. or up to the boiling point of the solvents, and the doped polymers containing heteroaromatic 5-membered rings obtained by this process.