In an ionic solid the larger ion forms the closed packed structure and the smaller ion occupies the voids. The cations are formed by the loss of valence electrons (outermost shell) while anions gain electrons and generally, the anions are larger in size to the cations. In CaF2, Ca2+ is larger in size to F- and hence Ca2+ forms the closed packed structure and anions occupy the voids.