It is believed that in the 11th century thais migration in large numbers from Yunan in southern china, driven by a desire for greater independence and better farmland. They formed two groups of kingdoms, in the north near the mekhong river and further south at the edge of the Chao Phraya river valley