A cation is an ion with a net positive charge due to the loss of an electron, while an anion is an ion with a net negative charge due to the gain of an electron.