Israel has fought and won three major wars in its existence.
The first war it fought as a nation was in 1947/48, followed by the Six-day War of 1967 and the 1973 Yom Kippur War.
1947: On November 30 1947, Arab gunmen, in the first shots of the war, ambushed two Jewish buses near Petah Tikva, killing seven passengers, and snipers firing from the Arab town of Jaffa hit pedestrians in neighboring Tel Aviv. Attacks in the first four months of the war were limited to Arab bombings and snipings in the urban centers; assaults on Jewish urban neighborhoods and rural settlements; and ambushes against Jewish traffic. http://www.historynet.com/lashing-back-israel-1947-1948-civil-war.htm
1967: The Six-Day War, also known as the June War, 1967 Arab–Israeli War, or Third Arab–Israeli War, was fought between June 5 and 10, 1967 by Israel and the neighboring states of Egypt, Jordan, and Syria, after the Arab nations massed their troops to invade, and some say to obliterate, the Israelis. On May 14, 1967, Nasser mobilized Egyptian forces in the Sinai; on May 18 he formally requested the removal of the UNEF stationed there; and on May 22 he closed the Gulf of Aqaba to Israeli shipping, thus instituting an effective blockade of the port city of Elat in southern Israel. On May 30, King Ḥussein of Jordan arrived in Cairo to sign a mutual defense pact with Egypt, placing Jordanian forces under Egyptian command; shortly thereafter, Iraq too joined the alliance. In response to the apparent mobilization of its Arab neighbours, early on the morning of June 5, Israel staged a sudden preemptive air assault that destroyed more than 90 percent Egypt’s air force on the tarmac. https://www.britannica.com/event/Six-Day-War
1973: The Yom Kippur War, Ramadan War, or October War, also known as the 1973 Arab–Israeli War, was a war fought by a coalition of Arab states led by Egypt and Syria against Israel from October 6 to 25, 1973. On October 6, 1973, hoping to win back territory lost to Israel during the third Arab-Israeli war, in 1967, Egyptian and Syrian forces launched a coordinated attack against Israel on Yom Kippur, the holiest day in the Jewish calendar. Taking the Israeli Defense Forces by surprise, Egyptian troops swept deep into the Sinai Peninsula, while Syria struggled to throw occupying Israeli troops out of the Golan Heights. Israel counterattacked.. http://www.history.com/topics/yom-kippur-war