Karl Viktor Erjavec (born 21 June 1960) is a Slovenian lawyer and politician who served in the government of Slovenia as Minister of Foreign Affairs from 2012 to 2018.
He entered public service after democratisation in 1990, when the new democratic municipal authorities of the town of Kranj named him as head of the local administration.
In 2000, when Bizjak was named as Minister of Justice in the centre-left government of Janez Drnovšek, Erjavec became the secretary at the ministry.
After the parliamentary election of 2008, the party entered the left wing government coalition of Borut Pahor, and Erjavec was named Minister of the Environment and Spatial Planning.
That happened after several months of political pressures that centered primarily on the demand of the Court of Audit of the Republic of Slovenia for the dismissal of Erjavec as he failed to secure an efficient waste management system.