A yarn bobbin is used in colorwork knitting to help manage multiple colors and prevent tangling. It is especially useful for stranded knitting, intarsia, and other multicolor knitting projects.