New Zealand Prime Minister Jacinda Ardern has secured the backing of the Green Party for her next term of government.

Ardern announced Saturday that her Labour Party entered a cooperation agreement with the Greens that gives the smaller party two ministerial posts outside cabinet in return for its support on matters of confidence and supply in parliament. Ardern will announce her new cabinet on Monday, with ministers to be formally sworn in on November 6.

Ardern won an outright majority in the October 17 election, the first since New Zealand introduced proportional representation in 1996, and doesn’t need the Greens to govern. But the Greens supported her first administration and it is in her interests to maintain a good relationship with a party she may have to rely on again in the future.

“This cooperation agreement reflects the positive working relationship between our two parties and our areas of shared interest, while respecting the mandate voters gave Labour to form a government,” Ardern said in a statement. “It will deliver stability and cooperation in key policy areas while allowing the Greens to take an independent position from the government on all other matters.”

Green Party co-leaders James Shaw and Marama Davidson have been made ministers outside cabinet, with Shaw retaining his climate change portfolio, and Davidson to be appointed to the new position of minister for the prevention of family and sexual violence. She will also take on the role of associate minister of housing.

Ardern said the agreement strengthens the government’s stability and will ensure a strong majority in parliament on the most important votes.

“As we accelerate our recovery from Covid, strong stable government is essential to New Zealand,” she said. “Between this agreement and our existing parliamentary majority we won’t be held back from getting on with the work needed to rebuild our economy and continue to keep New Zealand safe from Covid.”