Before the establishment of Chiang Rai City, Ming Lai was the ruler of Nakhon Hiran Ngoen (now known as "Qingsheng" Chiang Saen)), and in 1262 he built Chiang Rai City as his center of rights, and eventually unified the northern provinces and established the Lannatai Dynasty in 1296, which was set to be the capital.