Two new decarestrictine analogs decarestrictine P and penicitone, together with eight known homologous compounds were isolated from the soil fungus from the rhizosphere of Penicillium sp. YUD18003 related to Gastrodia elata. Their different structures include a decanolides decartestridine P and a long‐chain polyhydroxyketone penicitone. The structures of new compounds were determined by nuclear magnetic resonance (NMR) spectroscopic analysis and high resolution electrospray ionization mass spectrometry (HR‐ESI‐MS), while their absolute configurations were determined by spectroscopic methods, DP4+ probability analysis, modified Snatzke's method and electron circular dichroism (ECD) calculations. All compounds were evaluated for antimicrobial activities.