These findings demonstrate that CDK7 inhibitors, already of interest as anticancer agents, could be repurposed to prevent or treat opportunistic fungal infections in cancer patients when combined with licensed antifungals limited by either toxicity or resistance. This evidence concerns the gene CDK7 and fungal infectious disease.