The document summarizes how Barack Obama's foreign policy views evolved from his early political career through winning the presidency in 2008. As a young politician and law professor, Obama did not have extensive experience in foreign affairs. However, he sought to educate himself by reading books on the topic and consulting with foreign policy experts. Initially he took more conventionally left-leaning positions but moved toward realism in order to differentiate himself from Hillary Clinton during the 2008 presidential campaign. Once in office, Obama appointed several national security advisors who advocated a realist approach focused on withdrawing from the Middle East and engaging China.