Pores in the skin can clog with excess oil and dead skin cells, causing pimples. Bacteria can enter the skin pores and get trapped along with the oil and skin cells.
The skin reaction causes swelling deep in the skin’s middle layer (the dermis). This infected, red, swollen lump is an acne cyst.