Erythema nodosum is an inflammatory condition that causes painful red nodules or lumps to appear under the skin, most commonly on the shins and ankles. It is typically a reaction to an underlying infection, medication, or systemic disease rather than a primary skin disorder.