Synthesis of 6-thiosubstituted 5-ethoxycarbonyl-1,3-diphenyl-2-thioxo-2,3-dihydropyrimidin-4(1H)-ones, 6-substituted 5-hydroxy-1,3-diphenyl-2,3-dihydrothieno[2,3-d]pyrimidin-4(1H)-ones and their esters with local anesthetic, antiarrhythmic, antiinflammatory and analgesic activities.