Keratosis pilaris is caused by the buildup of keratin — a hard protein that protects skin from harmful substances and infection. The keratin blocks the opening of hair follicles, causing patches of rough, bumpy skin. It's not clear why keratin builds up in people with keratosis pilaris.