Jazz is the genre most associated with improvisation. It allows for great freedom of expression and creativity. Many Jazz musicians improvise together, and we may wonder how this could possibly work in a group setting. The answer behind this is that although each person is “doing their own thing” they all follow the same set of rules.
First of all they make sure that they are all on the same harmony at any given time. The most common harmonic structure that Jazz musicians follow is the 12 Bar Blues.
This (maybe unsurprisingly!) is a 12 bar pattern, and it has the following structure:


On the left, we see the structure in Roman numerals. On the right, we see how that would look in the key of C.
Melodies in Jazz tend to follow a scale that is not the traditional major or minor.
This is a scale known as the “Blues Scale.” The notes (again based in C) are below.

For piano players, a few classic left-hand patterns are used in Jazz music.

