Ions are atoms or groups of atoms that have either lost or gained electrons so they have a positive or negative charge.