Original sentence: Most of the Great Wall in northern Beijing Municipality were built during the Ming Dynasty in the 1500s.The Ming dynasty built granaries known as the Jingtong storehouses
Edited sentence: After a fierce, five-day battle along the northern and western walls, Esen Tayisi was repelled back to Mongolia.Defense Minister Yu Qian rejected Esen's demands for ransom despite the emperor's pleadings.He also vigorously opposed other officials who counseled moving the capital to the South.In 1457, however, the Zhengtong Emperor reclaimed the throne and had Yu Qian executed for treason.Instead, Zhengtong's younger brother was elevated the throne, and 220,000 troops were assembled to defend the city.Most of the Great Wall in northern Beijing Municipality were built during the Ming Dynasty.No ransom was paid.The Oirat chieftain, Esen Tayisi then drove through the Great Wall and marched on the Ming capital with the captive emperor in hand.The city's defenses withstood a major test following the Tumu Crisis of 1449 when the Zhengtong Emperor was captured by Oirat Mongols during a military campaign near Huailai.Three years later, the Esen Tayisi returned the captive emperor.To feed the growing population, Ming authorities built granaries known as the Jingtong storehouses near the terminus of the Grand Canal.Yu Qian's home near Dongdan was later made into a temple in his honor.Yu said the responsibility to protect the country took precedence over the emperor's life