Chiang Mai is Thailand's second largest city, located in the far north of the country. Its history is deeply embedded with that of the Lanna kingdom, a regime that ruled portions of northern Thailand for over 250 years beginning in the late 11th century. Lanna, or Lan Na Thai, means "land of a million rice fields.