Anions are negatively charged ions formed when atoms gain electrons, resulting in a surplus of electrons compared to protons. They play a crucial role in various chemical reactions and are essential in processes such as electrolysis and the formation of ionic compounds.