Cosets and octet rule?

The octet rule only applies to main groups. In the subgroups, the orbitals play a crucial role. Five or ten electrons in the d orbitals are considered particularly stable. (If I understood correctly) But what happens when an element from a main group reacts with an element from a subgroup? Iron and oxygen, for example:…