Anamitra was the son of Nighna, a king of the Ikṣvāku (Ikshvaku) lineage. He left his kingdom for the forests to undertake rigorous religious austerities.