Ionic bonds form between metal and nonmetal atoms when electrons are transferred. Positively charged metal ions are called cations, and negatively charged nonmetal ions are called anions. Ionic bonds occur when cations and anions are attracted to each other due to their opposite charges, balancing out the overall charge. Ionic compounds write their chemical formulas to represent this charge balance between the ions.