Hydrothermal stability of SAPO-34 is greatly improved by the treatment of the acidic form of the SAPO-34 with NH3.