 Nonetheless, Erdeni Batur did succeed in instituting a standard code of laws and in making Buddhism the official religion throughout the Mongol realm.After the entente, Erdenebaatar continued to consolidate his power, preparing the Dzungar Khanate for its attack upon the Qing for control over Central Asia.Upon his death in 1653, Erdeni Batur was succeeded by his third son, Sengge.