The two sects of Jains disagree about whether Vardhamana ever married or not, but agree that when he was 30 he renounced the world and pulled all his hair out. He then practiced asceticism, including fasting, for 12 years, after which he attained enlightenment. This narrative has some similarities to the Buddha’s life as well