A stye is a painful, red bump that forms on the eyelid due to a bacterial infection of an oil gland or hair follicle. It typically appears as a localized swelling and may contain pus.