Ions are atoms that have gained or lost electrons, resulting in a net charge. There are two types of ions: cations, which are positively charged, and anions, which are negatively charged.