Kōwhai are small, woody legume trees in the genus Sophora native to New Zealand. There are eight species, Sophora microphylla and S. tetraptera being the most recognised as large trees. Their natural habitat is beside streams and on the edges of forest, in lowland or mountain open areas. Kōwhai trees grow throughout the country and are a common feature in New Zealand gardens. Outside of New Zealand, kōwhai tend to be restricted to mild temperate maritime climates.