Fungal infections present a significant health risk, particularly in immunocompromised individuals. Berberine, a natural isoquinoline alkaloid, has demonstrated broad-spectrum antimicrobial activity, though its antifungal potential and underlying mechanisms against both yeast-like and filamentous fungi are not fully understood. This study investigates the antifungal efficacy of berberine against Candida albicans, Cryptococcus neoformans, Trichophyton rubrum, and Trichophyton mentagrophytes in vitro, as well as its therapeutic potential in a murine model of cryptococcal infection. Berberine showed strong antifungal activity, with MIC values ranging from 64 to 128 µg/mL. SEM and TEM analyses revealed that berberine induced notable disruptions to the cell wall and membrane in C. neoformans. No signs of cell necrosis or apoptosis were observed in fungal cells treated with 2 × MIC berberine, and it did not increase intracellular ROS levels or affect mitochondrial membrane potential. Molecular docking and binding affinity assays demonstrated a strong interaction between berberine and the fungal enzyme CYP51, with a dissociation constant (KD) of less than 1 × 10−12 M, suggesting potent inhibition of ergosterol biosynthesis. In vivo studies further showed that berberine promoted healing in guinea pigs infected with T. mentagrophytes, and in a murine cryptococcal infection model, it prolonged survival and reduced lung inflammation, showing comparable efficacy to fluconazole. These findings indicate that berberine exerts broad-spectrum antifungal effects through membrane disruption and CYP51 inhibition, highlighting its potential as a promising therapeutic option for fungal infections.