The fourth book of the Mahabharata, known as the Virata Parva, opens with the exiled Pandavas deliberating on how to spend their final, thirteenth year in strict incognito within the kingdom of Virata, as demanded by the terms of their defeat at dice. To remain undiscovered, Yudhishthira chooses the guise of a court gambler named Kanka, Bhima becomes a royal cook called Vallava, Nakula takes charge of the stables, Sahadeva tends the cattle, and Draupadi serves as a hair-dresser named Sairindhri under Queen Sudeshna. Most remarkably, Arjuna assumes the persona of Vrihannala, a eunuch proficient in the arts of dance and music, instructing the royal maidens in the inner apartments. Before entering the city, the brothers safely conceal their celestial bows, including the mighty Gandiva, inside the branches of a Sami tree, guarding them with a suspended corpse to deter passersby.
Months pass in quiet service until the court is disrupted by the lustful advances of Kichaka, the powerful commander of Virata's forces, who becomes infatuated with Draupadi. Despite her repeated rejections and warnings that her husbands are celestial beings, Kichaka persists and eventually attacks her in the royal court before the king and courtiers, who fail to intervene. Driven to despair and anger, Draupadi seeks out Bhima at night and implores him to avenge her humiliation. Seizing the opportunity under cover of darkness, Bhima lures Kichaka to the empty dancing hall and engages him in a brutal wrestling match, crushing him into a shapeless mass of flesh to rid the kingdom of the menace and to fulfill his vow to protect his wife.
The death of Kichaka sends shockwaves through the realm and alerts the spies of Duryodhana, who suspect the Pandavas may be residing in Matsya. Hoping to draw them out or seize the kingdom's wealth, the Trigartas first invade Virata's territory to steal his cattle, prompting the king and his disguised Pandava courtiers to ride out in defense. While the Kauravas launch a simultaneous second raid on the northern borders, capturing thousands of cows, young Prince Uttara boasts of his martial prowess but panics upon facing the formidable Kuru army, fleeing from the battlefield until Arjuna reveals his true identity and resumes his legendary role as charioteer and warrior.
Returning to the Sami tree to reclaim the Gandiva, Arjuna restores Uttara's courage and drives back toward the Kaurava host, blowing his terrifying conch and unfurling his celestial banner. In a sweeping display of divine archery, Arjuna single-handedly engages and routs the greatest champions of the Kuru dynasty, including Drona, Karna, Kripa, Bhishma, and Duryodhana himself. He shatters their formations, rescues the stolen cattle, and humbles his arrogant adversaries without revealing his presence before the final day of exile has officially expired. The narrative culminates in the triumphant restoration of order and the preparation for the inevitable conflict that will follow the Pandavas' return.