An ionic compound is formed when one or more ions come together due to opposite charges attracting each other, typically involving metal cations and non-metal anions.
Related terms
Ion: An atom or molecule with a net electric charge due to the loss or gain of one or more electrons.