Sometime during the Jian'an era (196–220) of the reign of
Emperor Xian, Zhao Ang was reassigned to be an Army Adviser (參軍事) and relocated to Ji County (兾縣; present-day
Gangu County,
Gansu). In 211, the warlord
Ma Chao started a rebellion against
Cao Cao, the warlord who controlled the Han central government, but was defeated along with his allies by Cao Cao's forces at the
Battle of Tong Pass. In the following two or three years after the battle, Ma Chao constantly raided the lands in
Liang Province (covering roughly present-day
Gansu and
Ningxia) and attacked the cities in the area. When Ma Chao attacked Ji County, Wang Yi donned a battledress, armed herself with a bow and arrows, and assisted Zhao Ang in defending the city from Ma Chao's forces. She also handed out her personal accessories as rewards to the soldiers and substantially raised the defenders' morale. However, as Ma Chao pressed on the attack, the city gradually ran short of supplies and its defenders and civilian population began to suffer from hunger. Zhao Ang's superior,
Wei Kang, the governor of Liang Province, took pity on the plight of the people and planned to start peace talks with Ma Chao. Zhao Ang tried to dissuade Wei Kang from doing so but was ignored. Zhao Ang returned home and told his wife about it. Wang Yi replied: "A ruler has advisers to provide him counsel; officials also have the right to disregard the
command hierarchy and take matters into their own hands when the situation calls for it. There's nothing wrong with you being dictatorial under the current circumstances. Who knows whether reinforcements will arrive soon? We should encourage all the troops to perform their duties to the utmost and lay down their lives if necessary. We must never give in to the rebels' demands." However, by the time Zhao Ang went back to see Wei Kang, the latter had already concluded his negotiations with Ma Chao, with both sides agreeing to end the conflict. ==Living under Ma Chao's control==