They arrived in Peking on May 31 before the Boxers closed the city off from the world.
This sentence describes a specific event: the arrival of individuals in Peking before the city was sealed off by the Boxers.