It has formed coalition governments with both major political parties in New Zealand: first with the National Party from 1996 to 1998 and then with the Labour Party from 2005 to 2008 and from 2017 to 2020.