The octet rule is a fundamental concept in chemistry that states that atoms tend to form stable chemical bonds by achieving a full valence electron shell, typically containing eight electrons. This rule helps explain the formation of ionic and covalent bonds between atoms.