Crystal structures of Ca8MgR(PO4)7 (R = rare-earth elements) luminescent materials were studied. Ca8MgR(PO4)7 crystallize in centrosymmetric space group R-3c in contrast to their parent compound. Distribution of rare-earth elements among structural sites was established. Antiferroelectric properties were detected in all samples.