|Weapon||Spear and Gada|
|Family||Madri (younger sister)|
|Children||Rukmangada, Rukmaratha and Madranjaya.|
|Relatives||Nakula and Sahadeva (nephews), Pandu (brother in law)|
In the Hindu epic Mahabharata, King Shalya (Sanskrit: शल्य, lit. pointed weapon) was the brother of Madri (mother of Nakula and Sahadeva), and the ruler of the Madra kingdom. Skilled with the mace and a formidable warrior, he was tricked by Duryodhana to fight the war on the side of the Kauravas. He was encouraged to serve as the charioteer of Karna by Yudhisthira to dissuade the former from combat. Shalya was an incredibly calm and deliberate fighter, his level-headedness and prowess in warfare making him a great warrior in spite of his slight build.
On his way to Hastinapur, King Pandu encountered Shalya's army. At parlay, Shalya and his general met with Pandu; Pandu was very impressed by Shalya's slight general and became friends. Bhishma, head of Pandu's family, came to know about Shalya's beautiful sister, Mādrī and decided to arrange Pandu's second marriage with Madri. Shalya agreed and was gifted with golds and jewels from Hastinapur.
Years after Madri had decided to self immolate herself, Shalya invited his nephews Nakula and Sahadeva to Madra, wishing to make them his heirs. On their eighteenth birthday, Shalya revealed his intention to the twins. Shalya argued that Nakula could be a king one day, instead of fourth-in-line to the throne of Hastinapur, provided that Yudhishthira would be named the crown prince. Nakula supposed that Shalya only wished to anoint Nakula and Sahadeva as his heirs because they were both children of God, and that Shalya was rejecting his own children from the line of succession with this gambit. Nakula admitted that while Sahadeva and he staying with the Pandavas would give them no power, his brothers and Kunti genuinely loved him, and would never try to make Nakula and Sahadeva their pawns. After some deliberation, Nakula was convinced that Shalya had no ulterior motives. Sahadeva and he agreed to become the heirs to Shalya's throne, on the condition that they would always stay with the rest of the Pandavas.
When Shalya heard of the impending Kurukshetra War, he marched forth with his army to join his nephews. On the way, Shalya was tricked by Duryodhana, who arranged a huge feast for Shalya and his men, entertaining him for hours. Impressed, Shalya is generous with his praise and asks to see Yudhishthira, who Shalya thought was his host. When Duryodhana reveals the treachery, Shalya is astounded but is compelled to grant a boon due to the hospitality. Unable to turn down Duryodhana's request to join the Kauravas, Shalya met the Pandavas and apologized for his mistake. Nakula and Sahadeva became enraged, saying that Shalya had truly proven that Nakula and Sahadeva weren't real brothers to the Pandavas, but only step-brothers. Yudhishthira quickly stepped in and reprimanded the twins, commanding that they were never to again cheapen their relationship by saying they were "step" brothers. At this point, Shalya realised he had underestimated their brotherly bond. Yudhishthira promised to Shalya that he will kill him in war.
Prior to the start of the war, Yudhishthira met with his elders on the Kaurava side, seeking their blessings. Shalya readily offered his blessings to Yudhishthira, wishing him victory. Yudhisthira feared that Karna could single-handedly kill the Pandavas. In other to dissuade him from combat, Shalya was requested by Yudhishthira to heap praises on his brothers in order to infuriate Karna, to distract him on the field of battle.
Though not spirited in his fight, Shalya confronted many great warriors during the war. On the first day he attacks Yudishthira and snaps his bow. However, Yudishthira takes another bow and wounds Shalya. Shalya killed Uttar Kumara on the first day of the war. He killed the boy with his spear after a fantastic duel, and subsequently hailed his brave death. On the second day, his eldest son Madranjaya is killed by Virata as revenge for Uttara.
On the 13th day, Shalya's sons Rukmangada and Rukmaratha were killed by Abhimanyu. On the 14th day, he tries to stop Arjuna’s advance towards Jayadratha but is defeated. During the night battle at the end of the day, he vanquishes Virata and makes him flee.
On 17th day of battle, Karna defeated, but spared the lives of Nakula and Sahadeva, stating that they are younger and not his equals, therefore not deserving of death by his hands. He proceeded to clash with Arjuna, having previously promised Kunti that he would attempt to slay any Pandava except Arjuna. The Karna-Arjuna duel began. During the course of the battle, Karna invoked the Ashwasena snake on his arrow and directed it towards Arjuna. Shalya interrupted him, encouraging Karna to aim at Arjuna's chest instead. Due to the deceptive nature of Shalya, Karna surmised that this advice must be inaccurate, and aimed the arrow towards Arjuna's head. Krishna, knowing that Ashwasena was on the arrow, drove Arjuna's chariot into the earth, saving him from his otherwise inevitable doom.
After the death of Karna, Shalya felt immense remorse for the former and swore to fight on in his name on the eighteenth day of the war. Duryodhana subsequently named Shalya as the new commander-in-chief of the Kaurava forces.
After becoming named the new commander-in-chief, Shalya became impassioned to fight for the Kaurava cause. Krishna suggested that Yudhishthira should kill the powerful warrior, as the eldest Pandava was not a man of aggression and could meet Shalya's calm demeanour in battle. As soon as the battle started, Yudishthira, Nakula, Sahadeva and Bhima attack Shalya but they are defeated by him in no time. They attack him again, this time with Satyaki, Dhrishtadyumna and Shikandi but Shalya easily defeats them all again. They tried various tricks on Shalya but he defeated them each time. After that, he and Bhima fight each other and both become unconscious. When Shalya recovers, Yudishthira challenged Shalya. Shalya was subsequently slain by Yudhishthira in spear-combat. Honouring their word to Shalya, Nakula and Sahadeva ascended the throne of the Madra kingdom.