In Ramayana,after Ravana’s death and Rama’s victory ,Ravana’s brother was asked to assume the leadership of the country and he was suggested to marry Ravana’s wife.This is said to be was for averting Ravana’s wife’s death by suicide.
In Mahabarata,after the great war Pandava’s victory, all the women and other aged persons were spared.But again the lives of women and children were often spared by the various warring factions in those earas.