What is the primary factor governing the structure of ionic compounds?

Answer

Electrostatic attraction.

Ionic crystal arrangement is overwhelmingly determined by the balance between the attraction between oppositely charged ions and the repulsion between like charges.

What is the primary factor governing the structure of ionic compounds?
structureformationcrystallattice