United States foreign policy in the Middle East has its roots in the 19th-century Barbary Wars that occurred shortly after the 1776 establishment of the United States as an independent sovereign state, but became much more expansive in the aftermath of World War II. With the goal of preventing the Soviet Union from gaining influence in the region during the Cold War, American foreign policy saw the deliverance of extensive support in various forms to anti-communist and anti-Soviet regimes; among the top priorities for the U.S. with regards to this goal was its support for the State of Israel against its Soviet-backed neighbouring Arab countries during the peak of the Arab–Israeli conflict. The U.S. also came to replace the United Kingdom as the main security patron for Saudi Arabia as well