After the defeat of Ravana and the end of the war in Lanka, Sita was brought before Rama. She had spent a long period in captivity and now stood before the army, surrounded by witnesses.
Rama declared that the victory had restored his honor and kingdom, but the ordeal had created a question about how Sita's purity would be received by the world. Sita, determined to speak for herself, rejected the idea that captivity had made her faithless.
She called upon Agni, the divine fire, as a witness to her truth. In the traditional account, Sita entered the fire and emerged unharmed. Agni returned her and affirmed her innocence.
Rama then accepted Sita. The episode is difficult, and over the centuries different traditions and later retellings have understood it, and sometimes told it, in different ways.
For the characters, the end of the war does not immediately erase the emotional consequences of captivity, suspicion, and public duty. The episode becomes another test of what it means to protect honor while carrying personal grief.