The present invention provides substituted fused pyrimidine compounds of formula (I), their tautomers, polymorphs, stereoisomers, prodrugs, solvates, pharmaceutically acceptable salts, pharmaceutical compositions containing them and methods of treating conditions and diseases that are mediated by adenosine receptor (AR) activity. The present invention also provides process of preparation of compounds of formula (I).