The disclosed compounds relate to treatments and therapies for protein kinase-associated disorders. There is also a need for compounds useful in the treatment or prevention or amelioration of one or more symptoms of cancer, transplant rejections, and autoimmune diseases. Furthermore, there is a need for methods for modulating the activity of protein kinases, such as CDK1, CDK2, CDK4, CDK5, CDK6, CDK7, CDK8 and CDK9, using the compounds provided herein.