Isomerism is when compounds with the same chemical formula have different structures or arrangements of atoms.