From 20 June 1900, Boxers and Imperial Chinese Army troops had besieged foreign diplomats, citizens and soldiers within the legations of Austria-Hungary, Belgium, Britain, France, Italy, Germany, Japan, Netherlands, Russia, Spain and the United States.
The first attempt to relieve the legations by a force of over 2,000 sailors and marines commanded by British Admiral Edward Seymour was turned back by strong opposition on 26 June.
On 4 August a second, much larger relief force, called the Eight-Nation Alliance, marched from Tientsien (Tianjin) toward Peking (Beijing).
[5] The objective of the alliance forces was to fight their way into the city of Peking, make their way to the Legation Quarter and rescue the 900 foreigners besieged there by the Chinese army since 20 June.
The population living within the walls was about one million people, although many had fled to escape the Boxers and the fighting between the Chinese army and the foreigners in the Legation Quarter.
[6] As the armies moved into position about five miles from the walls, on the night of 13 August, they could hear the sounds of heavy artillery and machine-gun fire from within the city.
The people sheltering in the Peitang had suffered several hundred killed, mostly from starvation, disease and mines detonated beneath the perimeter walls.
Once inside the gate, however, in the courtyard between the inner and outer doors, they were caught in a murderous crossfire that killed 26 Russian soldiers and wounded 102.
Likewise with the Americans, they were aware that the easiest entry into the Legation Quarter was through the so-called Water Gate, a drainage canal running beneath the wall of the Inner city; The British had arrived initially, wading through the muck of the canal and towards the Legation Quarter, where they were greeted by a cheering throng of the besieged, all decked out in their "Sunday best" at 2:30 PM on 14 August.
[18] The Dowager Empress, Cixi, the emperor and several members of the court fled Peking in the early morning of 15 August, only a few hours before the Americans knocked up against the wall of the Forbidden City.
Remaining in Peking to deal with the foreigners, and holed up in the Forbidden City, were trusted aides to the Dowager, including Ronglu, commander of the army and her friend since childhood.
[20] After the battle was over, the Kansu Muslim troops, including General Ma Fuxiang, were among those guarding the Empress Dowager during her flight.
However, the Chinese gave way when the foreign armies promised not to occupy the Forbidden City but threatened to destroy it if their passage was disputed.
American missionary Luella Miner claimed that "The conduct of the Russian soldiers is atrocious, the French are not much better, and the Japanese are looting and burning without mercy".
Some of the looting was justified as being done so for humanitarian reasons, such as the case of Catholic Bishop Pierre Favier and American Congregationalist William Scott Ament who had hundreds of starving Chinese Christians to care for and needed food and clothing.
Chafee commented that "It is safe to say that where one real Boxer has been killed since the capture of Beijing, fifty harmless coolies or laborers on the farms, including not a few women and children, have been slain".
[35] A peace agreement was concluded between the Eight-Nation Alliance and representatives of the Chinese government Li Hung-chang and Prince Ching on 7 September 1901.
The treaty required China to pay an indemnity of $335 million (over $4 billion in current dollars) plus interest over a period of 39 years.
Also required was the execution or exile of government supporters of the Boxers and the destruction of Chinese forts and other defenses in much of northern China.
Ten days after the treaty was signed the foreign armies left Beijing, although legation guards would remain there until World War II.