It is studied that the interaction of methyl (3-oxopiperazin-2-ylidene) acetate with an N-arylmaleimides. It is established that methyl (3-oxo-piperazine-2-ylidene) acetate is reacted with N-arylmaleimides in boiling methanol in the presence of catalytic amounts of acetic acid as the C-N-dinucleophile to form not previously described methyl-1, 6-dioxo-8-[(arylamino)carbonyl]-1, 3, 4, 6, 7, 8-hexahydro-2H-pyrido [1, 2-a] pyrazine-9-carboxylates. An excess of acid (in a mixture of methanol and acetic acid in the ratio 1:1) occurs 1, 3-dipolar cycloaddition of the N-arylmaleimides toward tautomeric form methyl (3-oxo-piperazine-2-ylidene) acetatemethyl (3-oxo-3, 4, 5, 6-tetrahydropyrazine-2-yl) acetate with the formation of new heterocyclic system-methyl-2-aryl-1, 3, 8-trioxodecahydro-1H-pyrrolo [3', 4':4, 5] pyrrolo [1, 2-a] pyrazine-9-carboxylates.