The present invention relates to indole or indazole compounds, pharmaceutically acceptable salts or isomers thereof which are useful for the prevention or treatment of cellular necrosis and necrosis-associated diseases. The present invention also relates to a method and a composition for the prevention or treatment of cellular necrosis and necrosis-associated diseases, comprising said indole or indazole compounds as an active ingredient.