Matamata (ˈmataˌmata) is a town in Waikato, New Zealand. It is located near the base of the Kaimai Ranges, and is a thriving farming area known for Thoroughbred horse breeding and training pursuits. It is part of the Matamata-Piako District, which takes in the surrounding rural areas, as well as Morrinsville and Te Aroha. State Highway 27 and the Kinleith Branch railway run through the town. The town has a population of as of A nearby farm was the location for the Hobbiton Movie Set in Peter Jackson's The Lord of the Rings. The New Zealand government decided to leave the Hobbit holes built on location as tourist attractions. During the period between the filming of The Lord of the Rings: The Return of the King and The Hobbit: An Unexpected Journey they had no furniture or props, but could be entered with vistas of the farm viewed from inside them. A "Welcome to Hobbiton" sign has been placed on the main road. In 2011, parts of Hobbiton began to close in preparation for the three new movies based on the first Tolkien novel, The Hobbit. Matamata covers and had an estimated population of as of with a population density of people per km2. Matamata had a population of 7,806 at the 2018 New Zealand census, an increase of 720 people (10.2%) since the 2013 census, and an increase of 1,509 people (24.0%) since the 2006 census. There were 3,111 households, comprising 3,717 males and 4,089 females, giving a sex ratio of 0.91 males per female, with 1,374 people (17.6%) aged under 15 years, 1,314 (16.8%) aged 15 to 29, 2,934 (37.6%) aged 30 to 64, and 2,187 (28.0%) aged 65 or older. Ethnicities were 84.5% European/Pākehā, 15.7% Māori, 1.7% Pacific peoples, 5.9% Asian, and 1.4% other ethnicities. People may identify with more than one ethnicity. The percentage of people born overseas was 16.6, compared with 27.1% nationally. Although some people chose not to answer the census's question about religious affiliation, 49.2% had no religion, 37.2% were Christian, 1.2% had Māori religious beliefs, 1.0% were Hindu, 0.2% were Muslim, 0.