Structural isomerism occurs when atoms and functional groups are connected differently.