In the context of chemistry, an ionic compound is a salt that contains an equal amount of anions (negative ions) and cations (positive ions).
An ionic compound is formed when aluminum reacts with sulfur.
When this happens, the aluminum atom loses electrons and becomes positively charged (cations).
The sulfur atom gains electrons and becomes negatively charged (anions).
These ions are then attracted to each other, and this attraction creates the ionic bond.