Pyoderma gangrenosum is a condition that causes tissue to become necrotic causing deep ulcers. The large, painful sores (ulcers) most often develop on the legs.