The invention relates to compounds from the soft coral and the generation thereof. The invention also relates to the uses of the compounds from the soft coral in inhibiting inducible nitric oxide synthase and/or cyclooxygenase-2 and in treating the diseases associated with inducible nitric oxide synthase and/or cyclooxygenase-2.