Blackheads occur when a hair follicle, or pore, becomes clogged and inflamed. They can also be exacerbated by a surplus of keratin, an increased presence of bacteria on the skin, or hormonal changes. Excess oil is also a major factor, which can be affected by things like sweating or genetics.