Curvularia trifolii is an important pathogenic fungus that causes leaf spot disease in strawberry and other crops. Increased resistance in pathogenic fungi against chemical fungicides necessitates the search for biological alternatives to control plant fungal diseases. The present study aimed to perform transcriptome and metabolome analysis of C. trifolii fungi. We evaluated the potential of an alkaloid, namely alpha (α)-solanine, to inhibit the growth of Curvularia under in vitro conditions. Furthermore, transcriptomic and metabolomic analysis of treated C. trifolii was performed to identify the differential genes and metabolites. Results revealed that treatment with α-solanine resulted in the poor growth and development of fungal spores. The transcriptome analysis revealed that 1413 genes were differentially expressed (DEGs), among which 340 unigenes were up-regulated, 100 unigenes were down-regulated, and the rest were unaffected in treated samples. Gene ontology analysis revealed that the majority of the genes were related to oxidative stress in the fungus. Additionally, using ultra-high performance liquid chromatography-tandem mass spectrometry, we identified 455 metabolites, among which the majority of metabolites were related to lipid biosynthesis. The high number of genes related to lipid biosynthesis and reactive oxygen species revealed that α-solanine causes oxidative stress in Curvularia, leading to growth inhibition, and can be potentially used as an alternative to chemical fungicides.