Four new polyketides: nectriacids A–C (1–3) and 12-epicitreoisocoumarinol (4), together with three known compounds: citreoisocoumarinol (5), citreoisocoumarin (6), and macrocarpon C (7) were isolated from the culture of the endophytic fungus Nectria sp. HN001, which was isolated from a fresh branch of the mangrove plant Sonneratia ovata collected from the South China Sea. Their structures were determined by the detailed analysis of NMR and mass spectroscopic data. The absolute configuration of the stereogenic carbons for compound 4 was further assigned by Mosher’s ester method. All of the isolated compounds were tested for their α-glucosidase inhibitory activity by UV absorbance at 405 nm, and new compounds 2 and 3 exhibited potent inhibitory activity with IC50 values of 23.5 and 42.3 μM, respectively, which were more potent than positive control (acarbose, IC50, 815.3 μM).