Major observations in the heated metal phosphate compounds were a densification/condensation of the material due to amorphization or recrystallization and the development of meso-to microporous frameworks, all the effects caused by degassing of water and ammonia. Based on our results, we suggest that the stability of the amorphous phase is directly linked to the preservation of the mesoporous structures.