Complex sentence: Following this is probably the most important ritual: a simulation of the sacrifice of Hijra, which was done before the Mahabharata war to ensure success to the Pandavas.
Split into simpler sentences: Following this is probably the most important ritual. Before the Mahabharata war Aravan (Hijra) was sacrificed to ensure success to the Pandavas.