An isomer is a compound that shares the same molecular formula as another compound but differs in the arrangement of atoms or the configuration of its molecules, leading to different chemical and physical properties.