The invention belongs to the technical field of medicinal chemistry, and discloses an emodin azole alcohol compound as shown in formula I, which has strong antimicrobial activity in vitro, especially against Staphylococcus aureus, Bacillus subtilis and Micrococcus luteus , Escherichia coli, Proteus, Pseudomonas aeruginosa, Shigella dysenteriae, Salmonella typhimurium and other bacteria, as well as Candida utilis, Candida albicans, Saccharomyces cerevisiae, Aspergillus flavus, Candida, etc. Fungi show high inhibitory activity and can be used to prepare antibacterial and / or antifungal drugs, thereby providing more efficient drug candidates for clinical antimicrobial treatment, and helping to solve the increasingly serious drug resistance, stubborn Clinical treatment issues such as pathogenic microorganisms and emerging harmful microorganisms.