Vali drives his brother Sugriva out of Kishkindha and takes his wife. Rama promises to kill Vali, and shoots him from behind a tree while the brothers fight. The dying Vali asks how a just prince could strike from hiding, and Rama answers. In Maharashtra the Gudi Padwa flag is told as the flag of this victory.
Vali, returning from a demon's cave that Sugriva had sealed thinking him dead, drives Sugriva out and takes his wife Ruma. Rama allies with Sugriva at Rishyamuka. In the first fight he cannot tell the brothers apart; Sugriva returns wearing a garland, and despite Tara's warning Vali fights him again and Rama shoots him from cover. Vali accuses Rama of striking an unengaged foe; Rama answers that he punished Vali under Bharata's law for taking his brother's wife. Vali accepts, commends Angada to him and dies; Sugriva is crowned.