The invention described herein relates to certain 4-oxo-2-thioxo- 1,2,3, 4-tetrahydro-7-quinazolinecarboxamide derivatives of formula (I) which are antagonists of HIF prolyl hydroxylases and are useful for treating diseases benefiting from the inhibition of this enzyme, anemia being one example.