Pyoderma gangrenosum is a disease that causes tissue to become necrotic, causing deep ulcers that usually occur on the legs. The cause is unknown, but there is evidence it might be caused by immune system dysfunction disease.