In August 1211, during the Battle of Yehuling, Genghis Khan's 90,000 strong force destroyed the 450,000 strong Jin dynasty army.
In 1251, Möngke Khan became the Khagan of the Mongol Empire.
He put Kublai, his brother, in charge of affairs of northern China.
Kublai established Jinlianchuan Mufu (金蓮川幕府), enlisting many talent of Han people like Liu Bingzhong to assist his governance.
Kublai regularly consulted them and discussed politics, religion ranging from Confucianism, Taoism and Buddhism.

In 1307, Külüg Khan or the Emperor Wuzong of Yuan began the construction of Yuan Zhongdu (元中都) in Onggachatu (旺兀察都, north to present Zhangbei) where the court was moved.
However, before full completion, Emperor Wuzong died soon and his successor Wuzong's brother, Emperor Renzong of Yuan called it off.
In August 1329, during Tianli Incident following the War of the Two Capitals, the new emperor Khutughtu Khan Kusala was poisoned to death by El Temür in Zhongdu.
Zhongdu was later destroyed in 1357 during the Red Turban Rebellion as the rebels marched towards Shangdu.

In 1370, Zhu Yuanzhang ordered his general, Tang He, to occupy Xuande (宣德), later changed to Xuanfu (宣府), Hua Yunlong to occupy Yunzhou (雲州), seated in the north of Chicheng.
Xuanfu was one of the Nine Garrisons of the Ming dynasty.
In order to defend China proper from invasions from the north, Ming emperors, especially Yongle Emperor (who sent the fleet of Zheng He journeying as far as East Africa) put great emphasis on the building of defensive forces in northern China, where most troops were deployed in Xuanfu, reaching 151 thousand during 1403 to 1424.
Fighting Mongols, Yongle Emperor's campaigns against the Mongols mainly took place to the north of Zhangjiakou.
In 1429, the construction of Zhangjiakoubu (張家口堡; 'Castle of Zhang Family's (Mountain) Pass') was started.
The castle was one defensive stronghold in the Great Walls.

In September 1, 1449, while retreating from the campaign against Mongols (Oirats), the 500,000-man army was defeated and the Emperor Yingzong of Ming was captured by chasing Mongolian troops in Huailai County, which was later called Tumu Crisis.
The Emperor was sent back next year but only restored his throne in 1457.
In 1529, local officer Zhang Zhen (张珍) built a small gate to north, which was strengthen in 1574 and 1581.
Zhangjiakoubu enjoyed a paramount strategic position, thus being called Wuheng (武城; 'Martial Town').
Therefore, Zhangjiakoubu was the origin and starting point of modern-day Zhangjiakou City.

In 1514 and 1517, Dayan Khan led Mongol troops to invade China, causing great damage.
He built forts in Xuanhua and Datong and stationed 15000 troops on Ming territory.
Culminating in the Battle of Yingzhou (應州大捷) in 1517, Dayan Khan was killed in the battle.
From 1545, Xuanda Governor Weng Wanda (宣大總督翁萬達) began building Xuanfu Great Wall, reaching 462 li (231 km) next year.
In 1545, he built Great Walls again, reaching 169 li (84.5 km), effectively defending the area of Mongol cavalry's invasion.

The water-scarce city was historically the chief northern gate in the Great Wall to China for Europeans travelling along the Northern Tea Road (such as Ivan Petlin (1619) or Nicolae Milescu), often through the Juyong Pass.

In 1571, Altan Khan of Mongols received the title "Prince of Shunyi" (Obedient and Righteous Prince) from the Longqing Emperor, thus reaching an agreement of lasting peace with Ming.
Since then, the city of Zhangjiakou was transformed from a military base to an important horse market for Mongolian mounts imported into China.
From 1727 it was an important station for the Kyakhta trade between Russia and China.
In early autumn long lines of camels would come in from all quarters for the conveyance of the tea chests from "Kalgan" (Zhangjiakou) to Kyakhta across the Gobi Desert.
Each caravan usually made three journeys in the winter.
In the 19th century some Russian merchants had permanent residences and warehouses just outside the gate.
In August 1211, during the Battle of Yehuling, Genghis Khan's 90,000 strong force destroyed the 450,000 strong Jin dynasty army. In 1251, Möngke Khan became the Khagan of the Mongol Empire. He put Kublai, his brother, in charge of affairs of northern China. Kublai established Jinlianchuan Mufu (金蓮川幕府), enlisting many talent of Han people like Liu Bingzhong to assist his governance. Kublai regularly consulted them and discussed politics, religion ranging from Confucianism, Taoism and Buddhism.
In 1307, Külüg Khan or the Emperor Wuzong of Yuan began the construction of Yuan Zhongdu (元中都) in Onggachatu (旺兀察都, north to present Zhangbei) where the court was moved. However, before full completion, Emperor Wuzong died soon and his successor Wuzong's brother, Emperor Renzong of Yuan called it off. In August 1329, during Tianli Incident following the War of the Two Capitals, the new emperor Khutughtu Khan Kusala was poisoned to death by El Temür in Zhongdu. Zhongdu was later destroyed in 1357 during the Red Turban Rebellion as the rebels marched towards Shangdu.
In 1370, Zhu Yuanzhang ordered his general, Tang He, to occupy Xuande (宣德), later changed to Xuanfu (宣府), Hua Yunlong to occupy Yunzhou (雲州), seated in the north of Chicheng. Xuanfu was one of the Nine Garrisons of the Ming dynasty. In order to defend China proper from invasions from the north, Ming emperors, especially Yongle Emperor (who sent the fleet of Zheng He journeying as far as East Africa) put great emphasis on the building of defensive forces in northern China, where most troops were deployed in Xuanfu, reaching 151 thousand during 1403 to 1424. Fighting Mongols, Yongle Emperor's campaigns against the Mongols mainly took place to the north of Zhangjiakou. In 1429, the construction of Zhangjiakoubu (張家口堡; 'Castle of Zhang Family's (Mountain) Pass') was started. The castle was one defensive stronghold in the Great Walls.
In September 1, 1449, while retreating from the campaign against Mongols (Oirats), the 500,000-man army was defeated and the Emperor Yingzong of Ming was captured by chasing Mongolian troops in Huailai County, which was later called Tumu Crisis. The Emperor was sent back next year but only restored his throne in 1457. In 1529, local officer Zhang Zhen (张珍) built a small gate to north, which was strengthen in 1574 and 1581. Zhangjiakoubu enjoyed a paramount strategic position, thus being called Wuheng (武城; 'Martial Town'). Therefore, Zhangjiakoubu was the origin and starting point of modern-day Zhangjiakou City.
In 1514 and 1517, Dayan Khan led Mongol troops to invade China, causing great damage. He built forts in Xuanhua and Datong and stationed 15000 troops on Ming territory. Culminating in the Battle of Yingzhou (應州大捷) in 1517, Dayan Khan was killed in the battle. From 1545, Xuanda Governor Weng Wanda (宣大總督翁萬達) began building Xuanfu Great Wall, reaching 462 li (231 km) next year. In 1545, he built Great Walls again, reaching 169 li (84.5 km), effectively defending the area of Mongol cavalry's invasion.
The water-scarce city was historically the chief northern gate in the Great Wall to China for Europeans travelling along the Northern Tea Road (such as Ivan Petlin (1619) or Nicolae Milescu), often through the Juyong Pass.
In 1571, Altan Khan of Mongols received the title "Prince of Shunyi" (Obedient and Righteous Prince) from the Longqing Emperor, thus reaching an agreement of lasting peace with Ming. Since then, the city of Zhangjiakou was transformed from a military base to an important horse market for Mongolian mounts imported into China. From 1727 it was an important station for the Kyakhta trade between Russia and China. In early autumn long lines of camels would come in from all quarters for the conveyance of the tea chests from "Kalgan" (Zhangjiakou) to Kyakhta across the Gobi Desert. Each caravan usually made three journeys in the winter. In the 19th century some Russian merchants had permanent residences and warehouses just outside the gate.
Zhangjiakou