Transcriptome analysis is shown to be an effective strategy to understand the potential function of natural products. Here, it is reported that 11 previously undescribed hydroanthraquinones [nigroquinones A-K (1-11)], along with eight known congeners, were isolated from Nigrospora sphaerica. Their structures were elucidated by interpreting spectroscopic and spectrometric data including high-resolution mass spectra and nuclear magnetic resonance. The absolute configurations of 1-11 were confirmed by electronic circular dichroism calculations. Transcriptome analysis revealed that 3 (isolated in the largest amount) might be anti-inflammatory. Assays based on LPS-induced RAW264.7 macrophages and zebrafish embryos confirmed that some of the isolated hydroanthraquinones attenuated the secretion of pro-inflammatory mediators in vitro and in vivo. Further Western blotting and immunofluorescence experiments indicated that 4 (which showed the most obvious nitric oxide inhibition) could suppress the expression of nuclear factor-kappa-B (NF-κB), phosphorylation of the inhibitor of NF-κB kinase and inhibit the transportation of NF-κB to the nucleus. Hence, the suppression of the NF-κB signaling pathway may be responsible for the anti-inflammatory effect. These results show that bioactivity evaluation on the basis of transcriptome analysis may be effective in the functional exploration of natural products.