A pharmaceutical formulation comprises voriconazole or a pharmaceutically acceptable derivative thereof, and an excipient of formula (I), i.e., monomethoxy poly(ethylene glycol)-poly(D,L-lactic acid) block copolymers (mPEG-PDLLA). The pharmaceutical formulation has been shown to be stable and safe by experiments.