It's the way electrons are arranged around atoms.
Shells are subdivided into subshells and there are four kinds of these:
s which can hold up to 2 electrons
p which can hold up to 6 electrons
d which can hold up to 10 electrons
f which can hold up to 14 electrons
The first shell contains only one s subshell (can hold up to 2 electrons)
The second shell contains one s and one p subshell (can hold up to 8 electrons)
The third shell contains one s, one p and one d subshell (can hold up to 18 electrons)
The fourth shell contains one s, one p, one d and one f subshell (can hold up to 32 electrons)
For example an atom that has 17 electrons it will put them in:
the first shell: 2
the second shell: 8
the third shell: 7
In this case the third shell is the last or outer shell.
You will find that all elements in a group of the periodic table have a similar outer shell electron configuration e.g all the elements in group two, beryllium, magnesium, calcium, strontium, barium and radium have just two electrons in their outer shell.