The invention describes the pyrimidine-based compounds of the general formula I. Described compounds lower the production of the prostaglandin E2. In concentrations lowering production of this factor by 50%, these compounds have no negative effect on the cell viability and they are not cytotoxic. Furthermore, the method of production of the compounds of the general formula I is provided. A pharmaceutical composition comprising the polysubstituted pyrimidines according to the invention and the use of these compounds for the treatment of the inflammatory diseases are also provided.