New Zealand’s next prime minister credits time spent in a police cell for sparking his interest in national politics.

Twenty-five years after his brush with the law as a student protester, Chris Hipkins is set to become the nation’s 41st prime minister.

The ruling Labor Party’s caucus met Sunday in Wellington and endorsed his promotion to leader following the shock resignation of Jacinda Ardern. He is set to be sworn in by the governor-general this week.