Novel PI3K, especially PI3K delta isoform, selective inhibitors are disclosed. The compounds are useful in treating disorders related to abnormal PI3K or PI3Kδ activities such as cancer, immune disorders, cardiovascular disease, viral infection, inflammation, metabolism/endocrine disorders and neurological disorders.