What causes goose bumps?

Goosebumps are caused by the contraction of tiny muscles at the base of hair follicles, known as arrector pili muscles. When these muscles contract, they cause the hair to stand on end, creating the appearance of raised bumps on the skin. This physiological response is triggered by various factors, such as cold temperatures, strong emotions (such as fear or excitement), or the body's natural fight-or-flight response.