An ionic compound is a chemical compound composed of ions held together by electrostatic forces known as ionic bonds. These compounds typically form between metals and nonmetals, where metals lose electrons to become positively charged cations and nonmetals gain those electrons to become negatively charged anions. The resulting ionic bonds create a stable structure, which plays a crucial role in solubility and reactions in aqueous solutions.