During the Second Opium War, Anglo-French forces captured the outskirts of the city, looting and burning the Old Summer Palace in 1860. Under the Convention of Peking ending that war, Western powers for the first time secured the right to establish permanent diplomatic presences within the city. From 14 to 15 August 1900 the Battle of Peking was fought. This battle was part of the Boxer Rebellion. The attempt by the Boxers to eradicate this presence, as well as Chinese Christian converts, led to Beijing's reoccupation by eight foreign powers.[59] During the fighting, several important structures were destroyed, including the Hanlin Academy and the (new) Summer Palace. 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 US$335 million (over US$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 Peking, although legation guards would remain there until World War II.[60]