A guitar works by converting the vibrations of its strings into sound. When the strings are plucked or strummed, they create vibrations that travel through the guitar's body. These vibrations are then amplified by the guitar's soundboard and resonating chambers, producing audible sound. The pitch of the sound is determined by the length, thickness, and tension of the strings, which can be adjusted through tuning pegs. The player can control the volume and tone of the sound by using the guitar's various components, such as the frets, strings, pickups, and controls.