The Tai migration from the northern mountains into Thailand and Laos was a slow process, with the Tai generally remaining near the mountainous area in the region, where they were able to use their specialized agricultural knowledge relating to the use of mountain water for rice production. The earliest Tai settlements in Thailand were in the river valleys in the northern reaches of the country.