after the electoral victory of the slovenian democratic party in 2004, virant became the head of the newly created ministry of public administration in the first government led by janez janša. he launched a thorough reform of the public service in slovenia, which included modernization and economizing of the service. in the last years of janša's government, virant frequently ranked as the most popular minister and one of the most popular politicians in slovenia.