The ions have a regular, repeating arrangement called an ionic lattice . The lattice is formed because the ions attract each other and form a regular pattern with oppositely charged ions next to each other. ... This is why solid ionic compounds form crystals with regular shapes.