Original: Before that, he was the Minister of Foreign Affairs.
Simplified: Before his post as prime minister, he was the Minister of Foreign Affairs.