What is the Octet Rule?

The octet rule is a rule in chemistry about valence electrons. It states that atoms will gain, lose or share electrons so that there are 8 electrons in their outer or valence shell. Although this is a rule there are many bonding situations in chemistry where this does not apply.