Violin pegs are the tapered wooden dowels in the pegbox that anchor the strings and enable tuning. Each of the four strings has its own peg (typically made of ebony, rosewood, or boxwood).
Pegs also allow fine-tuning intonation (relative tuning of strings to each other). They are friction-fit, not glued, so they can be adjusted or replaced. Worn, slipping, or sticking pegs should be serviced or replaced by a luthier. Fine tuners on the tailpiece handle micro-adjustments, especially for the E string.