Ionic compounds are made up of two charged species, a cation (+) and an anion (–).
The charges must balance out to zero for a stable ionic compound, because ionic bonds are formed between two charged species. They form in ratios according to their charges to balance out.