Yeşilgöz-Zegerius was elected to the House of Representatives in the 2017 general election. She initially served as her party's spokesperson for justice and security,Lukas Kotkamp (3 January 2022), 8 things to know about the incoming Dutch government Politico Europe. but her portfolio later included climate policy and energy policy. On 25 May 2021, she was appointed State Secretary for Economic Affairs and Climate Policy in the demissionary third Rutte cabinet, serving alongside Mona Keijzer. On 10 January 2022, she was appointed Minister of Justice and Security in the fourth Rutte cabinet.
