Archduke Franz Ferdinand, heir to the Austro-Hungarian throne, traveled to Sarajevo, the capital of recently annexed Bosnia, on June 28, 1914, for a state visit that Serbian nationalist groups, including the secret society Black Hand, viewed as a provocative assertion of Austro-Hungarian control over territory with a large South Slavic population sympathetic to a pan-Serbian nationalist movement. A group of young conspirators, including Gavrilo Princip, positioned themselves along the planned motorcade route.
The assassination attempt very nearly failed entirely. An earlier conspirator threw a bomb at the Archduke's car that morning, but it bounced off the vehicle and detonated behind it, wounding bystanders and officers in a following car rather than the Archduke himself. Franz Ferdinand continued with his planned schedule, and most of the remaining conspirators, believing the plot had failed and fearing capture, dispersed. Later that day, after deciding to visit the wounded from the morning's bombing, the Archduke's motorcade driver took a wrong turn onto a side street, and upon realizing the mistake, stopped the car to reverse — directly in front of Gavrilo Princip, who happened to be standing nearby, having given up on the plot succeeding. Princip stepped forward and shot both Franz Ferdinand and his wife Sophie at close range; both died within the hour.