The positive transcription elongation factor b (P-TEFb) (CDK9/cyclin T (CycT)) promotes mRNA transcriptional elongation through phosphorylation of elongation repressors and RNA polymerase II. To understand the regulation of a transcriptional CDK by its cognate cyclin, we have determined the structures of the CDK9/CycT1 and free cyclin T2. There are distinct differences between CDK9/CycT1 and the cell cycle CDK CDK2/CycA manifested by a relative rotation of 26 degrees of CycT1 with respect to the CDK, showing for the first time plasticity in CDK cyclin interactions. The CDK9/CycT1 interface is relatively sparse but retains some core CDK-cyclin interactions. The CycT1 C-terminal helix shows flexibility that may be important for the interaction of this region with HIV TAT and HEXIM. Flavopiridol, an anticancer drug in phase II clinical trials, binds to the ATP site of CDK9 inducing unanticipated structural changes that bury the inhibitor. CDK9 activity and recognition of regulatory proteins are governed by autophosphorylation. We show that CDK9/CycT1 autophosphorylates on Thr186 in the activation segment and three C-terminal phosphorylation sites. Autophosphorylation on all sites occurs in cis.