When a lead guitarist is required to play a solo they can either play a pre-learned arrangement of notes or improvise a solo. Improvisation requires a combination of knowing:
Most improvised solos use particular fretboard patterns, the most common of these is shown in the following diagram.