Ashwathama became the last commander of the Kaurava army after Karna's death on the 17th day of battle. Following Karna's fall, Duryodhana appointed Ashwathama as the supreme commander. Shalya, who was Karna's charioteer, commanded briefly before Karna, while Kripacharya was a senior warrior but never the final commander.