They have the same number of protons (and electrons for that matter) but different number of neutrons. So basically, they are elements with the same atomic number but different atomic mass. The number of neutrons is what's making the difference between the two.