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. In 1900, the attempt by the “Boxers” to eradicate this presence, as well as Chinese Christian converts, led to Beijing’s reoccupation by foreign powers. During the fighting, several important structures were destroyed, including the Hanlin Academy and the (new) Summer Palace.