Background: Nonsteroidal anti-inflammatory drugs (NSAIDs) are among the most commonly used drugs in the world. The widespread use of NSAIDs is associated with a number of serious side effects and complications observed for both selective and non-selective COX inhibitors. Therefore, the search for new COX inhibitors, which along with their effectiveness will have minimal side effects, is a very important and urgent task. Methods: This work studied the synthesis of new 1,4,5,6-tetrahydropyrimidine-2-carboxamides based on the reaction of 2-morpholin-4-yl-N-(het)aryl-2-thioxoacetamides with 1,3-diaminopropane. All obtained compounds were tested for anti-inflammatory activity in vitro and in silico conditions. All synthesized 1,4,5,6-tetrahydropyrimidine-2-carboxamides were tested for influence on the course of the exudative phase of the inflammatory process based on the carrageenan model of paw edema of laboratory nonlinear heterosexual white rats weighing 220-250 g, using Diclofenac as a reference. Optimization of the geometry of the studied structures and molecular docking was carried out using the ArgusLab 4.0.1 software package. Results: The target products were obtained with yields of 71-98% and easily isolated from the reaction mixture. The best anti-inflammatory activity was found in N-(4-chlorophenyl)-1,4,5,6-tetrahydropyrimidine-2-carboxamide and in N-[4-chloro-3-(trifluoromethyl)phenyl]-1,4,5,6-tetrahydropyrimidine-2-carboxamide, suppression of the inflammatory response was 46.7 and 46.4%, respectively. The results of molecular docking with COX-1 and COX-2 enzymes were in good agreement with the experimental data, R2 ˃ 0.92 and R2 ˃ 0.83, respectively. Conclusion: The compounds under study were shown to be promising as potential anti-inflammatory agents.