The present invention is directed to novel quinazolines, their derivatives, pharmaceutically acceptable salts, solvates, prodrug, stereoisomer, tautomer, metabolite and hydrates thereof. The compounds and compositions of the present invention have protein kinases inhibitory activities and are expected to be useful for the treatment of protein kinases mediated diseases and conditions.