A response of the immune system to foreign materials in the body in which a protective scar forms and gets thicker and harder.