According to the Jamadevivamsa, the city of Hariphunchai (modern Lamphun) was founded by the hermits; Jamadevi, a Lavo princess, was invited to rule the city in around 700 AD. However, the date is considered too early for the foundation of Hariphunchai as Jamadevi brought no Thammachakras to the north. Hariphunchai may be a later (about the 10th century) offshoot of the Lavo kingdom or instead related to the Thaton kingdom.