Meng Da was taken by utter surprise as he did not expect Sima Yi to show up at Shangyong Commandery so quickly. As Meng Da was surrounded on three sides by a river, he set up wooden barriers to defend himself. Sima Yi's forces crossed the rivers, destroyed the barriers, and arrived just outside Shangyong. Sima Yi split up his forces and attacked the city from eight different directions for over two weeks. On the sixteenth day, Meng Da's nephew Deng Xian () and subordinate Li Fu () opened the city gates and surrendered to Sima Yi. Meng Da was captured and executed