The octet rule states that atoms tend to form bonds in such a way that they achieve eight electrons in their valence shell, gaining a stable electron configuration similar to noble gases. This rule is fundamental for understanding molecular structures and chemical bonding.