Megawati is Indonesia's first female president and the sixth woman to lead a Muslim-majority country. Megawati was the first Indonesian president to be born after Indonesia proclaimed its independence. After serving as vice president to Abdurrahman Wahid, Megawati became president when Wahid was removed from office in 2001. She ran for re-election in the 2004 presidential election, but was defeated by Susilo Bambang Yudhoyono. She ran again in the 2009 presidential election, but Yudhoyono defeated her for a second time.