Homosexual Law Reform Act 1986
The Homosexual Law Reform Act 1986 is a New Zealand Act of Parliament that broadly legalised consensual sexual practices between men as well as consensual anal sex regardless of partners' gender. It removed the provisions of the Crimes Act 1961 that criminalised this behaviour.
Source: Wikipedia — Homosexual Law Reform Act 1986 (CC BY-SA 4.0)