The 18-electron rule is a guideline used in organometallic chemistry that suggests stable transition metal complexes tend to have a total of 18 valence electrons. This rule is based on the idea that a full octet around the central metal, combined with contributions from its ligands, leads to enhanced stability in these compounds.