Rani-ki-Vav was Queen Udayamati’s penance in line with prevailing traditions. Widows were expected to follow in the goddess Paravati’s footsteps. The only difference was Parvati stood on one foot in the Himalayas to be reunited with Shiva. Medieval royalty had stepwells made.