In 1840, the Treaty of Waitangi was signed, an agreement between the British Crown and Maori. It established British law in New Zealand and is considered New Zealand’s founding document and an important part of the country's history. The building where the treaty was signed has been preserved and, today, the Waitangi Treaty Grounds are a popular attraction.