A chalazion is a small, painless bump that forms on the eyelid when an oil gland becomes blocked and inflamed. It typically appears as a cyst-like swelling on the upper or lower eyelid and may resolve on its own or require treatment.