An ionic compound is a chemical compound formed by ions held together by strong electrostatic forces, known as ionic bonds. These compounds typically arise from the complete transfer of electrons between a metal and a nonmetal, forming stable crystal lattices.