Damage caused by the immune system's response to foreign substances or cells that can damage or destroy healthy cells.