Acyclic and macrocyclic compounds having different numbers of pyrimidine fragments and nitrogen atoms in the polymethylene bridges or in substituents at the pyrimidine rings reacted with 2,3,5,6-tetrachloro-1,4-benzoquinone and 1,4-benzoquinone according to the charge transfer scheme to give products with an ionic structure. The reaction was accompanied by protonation of nitrogen atoms in the polymethylene bridges or in substiuents at the pyrimidine rings and reduction of 2,3,5,6-tetrachloro-1,4-benzoquinone or 1,4-benzoquinone to 2,3,5,6-tetrachlorobenzene-1,4-diol or benzene-1,4-diol, respectively. The isolated products are dielectrics.