The reaction of spontaneous polymerization in the system of N, N-diethylaminoethyl methacrylate with allyl chloride and bromide, orthophosphoric acid in ethanol and dimethyl sulfoxide solutions is considered. Spontaneous polymerization proceeds, consisting of two stages: the quaternization reaction and the polymerization reaction. It was shown that the accompanying reaction of quaternization, spontaneous polymerization, takes place both in a mixture of reagents and in the presence of a solvent, in other words, and by mixing an unsaturated amine and an alkyl halide.