An analogue of AlPO-CJ2 microporous aluminophosphate containing heteroatomic Eu was hydrothermally synthesized in situ in the reactant system of carbamide–NH4F–Al2O3–P2O5–H2O, and characterization by ICP, powder XRD, Mössbauer spectra, 31P MAS NMR and luminescent spectroscopy prove that Eu is incorporated into the framework.