When a wound swells up, turns red and hurts, it may be a sign of inflammation. Very generally speaking, inflammation is the body’s immune system’s response to an irritant. The irritant might be a germ, but it could also be a foreign object, such as a splinter in your finger.