Mesoporous aluminophosphate was prepared by using G4.0 poly(amido amine)dendrimer as a template and characterized by Fourier transform infrared spectrometer (FTIR), X-ray diffraction (XRD), transmission electron microscopy (TEM) and N2 adsorption/desorption methods. Results show that the title compound exhibits a typical mesoporous structure with the average pore size from 5 to 8 nm. The formation mechanism of the nanoporous structure using dendrimer as a template was also discussed.