A headstock or peghead is part of a guitar or similar stringed instrument such as a lute, mandolin, banjo, ukulele and others of the lute lineage. The main function of a headstock is to house the pegs or mechanism that holds the strings at the "head" of the instrument.