not to make independent arms purchases. This was the background for the Altalena Affair, a confrontation surrounding weapons purchased by the Irgun resulting in a standoff between Irgun members and the newly created IDF. The affair came to an end when Altalena, the ship carrying the arms, was shelled by the IDF. Following the affair, all independent Irgun and Lehi units were either disbanded or merged into the IDF. The Palmach, a leading component of the Haganah, also joined the IDF with provisions, and Ben Gurion responded by disbanding its staff in 1949, after which many senior Palmach officers retired, notably its first commander, Yitzhak Sadeh. The new army organized itself when the 1947–48 Civil War in Mandatory Palestine escalated into the 1948 Arab–Israeli War, which saw neighboring Arab states attack. Twelve infantry and armored brigades formed: Golani, Carmeli, Alexandroni, Kiryati, Givati, Etzioni, the 7th, and 8th armored brigades, Oded, Harel, Yiftach, and Negev. After the war, some of the brigades were converted to reserve units, and others were disbanded. Directorates and corps were created from corps and services in the Haganah, and this basic structure in the IDF still exists today. Immediately after the 1948 war, the Israel-Palestinian conflict shifted to a low intensity conflict between the IDF and Palestinian fedayeen. In the 1956 Suez Crisis, the IDF's first serious test of strength after 1949, the new army captured the Sinai Peninsula from Egypt, which was later returned. In the 1967 Six-Day War, Israel conquered the Sinai Peninsula, Gaza Strip, West Bank (including East Jerusalem) and Golan Heights from the surrounding Arab states, changing the balance of power in the region as well as the role of the IDF. In the following years leading up to the Yom Kippur War, the IDF fought in the War of Attrition against Egypt in the Sinai and a border war against the Palestine Liberation Organization (PLO) in Jordan, culminating in the Battle of Karameh. The surprise of the Yom Kippur War and its aftermath completely changed the IDF's procedures and approach to warfare. Organizational changes were made and more time was dedicated to training for conventional warfare. However, in the following years the army's role slowly shifted again to low-intensity conflict, urban warfare and counter-terrorism. An example of the latter was the successful 1976 Operation Entebbe commando raid to free hijacked airline passengers being held captive in Uganda. During this era, the