Using an organosilane surfactant as the mesopore director, hierarchical porous silicoaluminophosphate SAPO-34 is obtained as an assembly of nanocrystallites intergrown into cubic micrometer-sized crystals, which show excellent performance in MTO reactions with a remarkably prolonged catalyst lifetime and enhanced selectivity of ethylene and propylene compared to the conventional microporous SAPO-34.