So the Han sent an army to subdue Dayuan. Their first incursion failed, but a second, larger force defeated Dayuan, installed a regime favorable to the Han, and won enough horses to later build a cavalry strong enough to defeat the Xiongnu in the Han–Xiongnu War.[3]