This section needs additional citations for verification
. (January 2013)
The IDF traces its roots to Jewish paramilitary organizations in the New Yishuv, starting with the Second Aliyah (1904 to 1914). The first such organization was Bar-Giora, founded in September 1907. Bar-Giora was transformed into Hashomer in April 1909, which operated until the British Mandate of Palestine came into being in 1920. Hashomer was an elitist organization with narrow scope, and was mainly created to protect against criminal gangs seeking to steal property. The Zion Mule Corps and the Jewish Legion, both part of the British Army of World War I, would further bolster the Yishuv with military experience and manpower, forming the basis for later paramilitary forces. After the 1920 Palestine riots against Jews in April 1920, the Yishuv leadership realised the need for a nationwide underground defense organization, and the Haganah was founded in June of the same year. The Haganah became a full-scale defense force after the 1936–1939 Arab revolt in Palestine with an organized structure, consisting of three main units—the Field Corps, Guard Corps, and the Palmach. During World War II, the Yishuv participated in the British war effort, culminating in the formation of the Jewish Brigade. These would eventually form the backbone of the Israel Defense Forces, and provide it with its initial manpower and doctrine.
Following Israel's Declaration of Independence, Prime Minister and Defense Minister David Ben-Gurion issued an order for the formation of the Israel Defense Forces on 26 May 1948. Although Ben-Gurion had no legal authority to issue such an order, the order was made legal by the cabinet on 31 May. The same order called for the disbandment of all other Jewish armed forces. The two other Jewish underground organizations, Irgun and Lehi, agreed to join the IDF if they would be able to form independent units and agreed 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 neighbouring 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.
, Israel's ground maneuver, encircles the Egyptian Third Army, October 1973
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 madeconventional 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 IDF also mounted a successful bombing mission in Iraq to destroy its nuclear reactor. It was involved in the Lebanese Civil War, initiating Operation Litani and later the 1982 Lebanon War, where the IDF ousted Palestinian guerilla organizations from Lebanon. Palestinian militancy has been the main focus of the IDF ever since, especially during the First and Second Intifadas, Operation Defensive Shield, the Gaza War, Operation Pillar of Defense, and Operation Protective Edge, causing the IDF to change many of its values and publish the IDF Spirit. The Lebanese Shia organization Hezbollah has also been a growing threat, against which the IDF fought an asymmetric conflict between 1982 and 2000, as well as a full-scale war in 2006.
and more time was dedicated to training for