Tzipi Livni position on Kadima's list of candidates, which effectively guaranteed her election to the Knesset. In 2006, Livni was appointed as Israel's Minister of Foreign Affairs. She held this position until 2009. In Ehud Olmert's government, Livni was also appointed Designated Acting Prime Minister (also known as Vice Prime Minister), taking the place of the prime minister if he or she is outside the country or temporarily or permanently unable to fulfill his or her duties. She ceased serving as Justice Minister at that time, but again held that position from 29 November 2006 to 7 February 2007, while still serving
Tzipi Livni Olmert decided to step down, and asserted her confidence in her ability to defeat him in a party election should he decline. However, her call was ignored by Olmert and her decision to stay in the Cabinet sparked some controversy. In 2008, Livni condemned a photomontage of Pope Benedict XVI with a swastika displayed on his chest, which was published on a website run by supporters of her Kadima party. Facing multiple criminal investigations for corruption, Ehud Olmert announced his intention to resign his post as prime minister following a Kadima leadership election, which was held on 17 September 2008.