Vardhamana Mahavira was the last and 24th Tirthankara of the Jainas. He was the Kshatriya prince of the Lichchavis, a community that was part of the Vajji sangha. He left home at the age of 30 and went to live in the hills. He lived a rough and solitary life for 12 years at the end of which he achieved enlightenment. He taught a clear doctrine: men and women who wanted to discover the truth had to leave their homes. They must strictly obey the laws of ahimsa.
Mahavira disciples, known as Jainas, had to lead very simple lives. They had to be completely honest, and they were particularly asked not to loot. They had to practise celibacy, too. And the men had to give it all up, including their clothing.