Lampang became part of the Lan Na Kingdom after its conquest by Phaya Mangrai in around 1286, though in reality the difficult terrain between Chiang Mai and Lampang permitted the rulers of the latter principality a considerable degree of autonomy in local matters. Nevertheless, both during the La Na period and subsequently, under Burmese hegemony, the two cities shared similar and related fates.