920 - Rout of an alliance of Christian troops from Navarre and Léon against the Muslims at Pamplona.
1139 - Battle of Ourique: The independence of Portugal from the Kingdom of León declared after the Almoravids, led by Ali ibn Yusuf, are defeated by Prince Afonso Henriques. He then becomes Afonso I, King of Portugal, after calling the first assembly of the estates-general of Portugal at Lamego, where he is given the Crown from the Bishop of Bragança, to confirm the independence.
1309 - Henry VII is recognized King of the Romans by Pope Clement V.
1861 - American Civil War: George B. McClellan assumes command of the Army of the Potomac following a disastrous Union defeat at the First Battle of Bull Run.
1878 - In California, the poet and American West outlaw calling himself "Black Bart" makes his last clean getaway when he steals a safe box from a Wells Fargo stagecoach. The empty box will be found later with a taunting poem inside.
1882 - Premiere of Richard Wagner's Parsifal at Bayreuth.
1908 - United States Attorney General Charles Joseph Bonaparte issues an order to immediately staff the Office of the Chief Examiner (later renamed the Federal Bureau of Investigation).
1914 - Serbia and Bulgaria interrupt diplomatic relationship.
1934 - Assassination of Austrian Chancellor Engelbert Dollfuss.
1936 - The Axis Powers decide to intervene in the Spanish Civil War.
1937 - End of the Battle of Brunete in the Spanish Civil War.
1941 - World War II: In response to the Japanese occupation of French Indo-China, US President Franklin D. Roosevelt orders the seizure of all Japanese assets in the United States.
1944 - World War II: Soviet army enters Lviv, major city of western Ukraine, liberating it from the Nazis. Only 300 Jewish survivors left, out of 160,000 Jews in Lviv prior to Nazi occupation.
1944 - The first German V-2 rocket hits Great Britain.
1945 - The Labour Party wins the United Kingdom general election of July 5 by a landslide, removing Winston Churchill from power.
1945 - The Potsdam Declaration is signed in Potsdam, Germany.
1945 - The US Navy cruiser Indianapolis arrives at Tinian with the warhead for the Hiroshima atomic bomb.
1946 - Aloha Airlines began service from Honolulu International Airport
1947 - Cold War: U.S. President Harry S. Truman signs the National Security Act into United States law creating the Central Intelligence Agency, Department of Defense, Joint Chiefs of Staff, and the National Security Council.
1948 - U.S. President Harry S. Truman signs Executive Order 9981 desegregating the military of the United States.
1953 - Fidel Castro leads an unsuccessful attack on the Moncada Barracks, thus beginning the Cuban Revolution.
1953 - Arizona Governor John Howard Pyle orders an anti-polygamy law enforcement crackdown on residents of Short Creek, Arizona, which becomes known as the Short Creek Raid.
1956 - Following the World Bank's decline to fund building the Aswan High Dam, Egyptian leader Gamal Abdel Nasser nationalizes the Suez Canal sparking international condemnation.
1957 - Carlos Castillo Armas, dictator of Guatemala, is assassinated
1963 - Syncom 2, the world's first geosynchronous satellite, is launched from Cape Canaveral on a Delta B booster.
1963 - Earthquake in Skopje, Republic of Macedonia (formerly part of Yugoslavia)
1963 - The Organization for Economic Cooperation and Development votes to admit Japan.
1965 - Full independence was granted to the Maldives.
1966 - Lord Gardiner issues the Practice Statement in the House of Lords stating that the House is not bound to follow its own previous precedent.
1968 - Vietnam War: South Vietnamese opposition leader Truong Dinh Dzu is sentenced to five years hard labor for advocating the formation of a coalition government as a way to move toward an end to the war.
1974 - Greek Prime Minister Constantin Caramanlis forms the country's first civil government after seven years of military rule.
1975 - Formation of a military triumvirate in Portugal.
1977 - The National Assembly of Quebec imposes the use of French as the official language of the provincial government.
1989 - A federal grand jury indicts Cornell University student Robert T. Morris, Jr. for releasing the Morris worm, thus becoming the first person to be prosecuted under the 1986 Computer Fraud and Abuse Act.
1990 - The Americans with Disabilities Act of 1990 was signed into law by President George H. W. Bush.
1994 - Russian President Boris Yeltsin orders the removal of Russian troops from Estonia.
2005 - Mumbai, India receives 99.5cm of rain (39.17 inches) within 24 hours, bringing the city to a halt for over 2 days.
2005 - Samir Geagea, the Lebanese Forces (LF) leader, is released after spending 11 years in a solitary confinement. His release came after the end of the Syrian occupation to Lebanon.