Lamphun was finally freed from the Burmese and ruled by relatives of Lampang's leader, gaining vassal status from Bangkok. Eventually, after the administrative reform of Bangkok government in the late-19th century, Lamphun became part, as a province, of Siam.