A hairpin is used to pin stray wisps of hair to a larger bunch of hair on a person's head.