The endophytic fungus Berkleasmium sp. Dzf12 that was isolated from Dioscorea zingiberensis, is a proficient producer of palmarumycins, which are intriguing polyketides of the spirobisnaphthalene class. These compounds displayed a wide range of bioactivities, including antibacterial, antifungal, and cytotoxic activities. However, conventional genetic manipulation of Berkleasmium sp. Dzf12 is difficult and inefficient, partially due to the slow-growing, non-sporulating, and highly pigmented behavior of this fungus. Herein, we developed a CRISPR/Cas9 system suitable for gene editing in Berkleasmium sp. Dzf12. The protoplast preparation was optimized, and the expression of Cas9 in Berkleasmium sp. Dzf12 was validated. To assess the gene disruption efficiency, a putative 1, 3, 6, 8-tetrahydroxynaphthalene synthase encoding gene, bdpks, involved in 1,8-dihydroxynaphthalene (DHN)-melanin biosynthesis, was selected as the target for gene disruption. Various endogenous sgRNA promoters were tested, and different strategies to express sgRNA were compared, resulting in the construction of an optimal system using the U6 snRNA-1 promoter as the sgRNA promoter. Successful disruption of bdpks led to a complete abolishment of the production of spirobisnaphthalenes and melanin. This work establishes a useful gene targeting disruption system for exploration of gene functions in Berkleasmium sp. Dzf12, and also provides an example for developing an efficient CRISPR/Cas9 system to the fungi that are difficult to manipulate using conventional genetic tools.