During the time between 800 and 200 BCE, the Śramaṇa movement formed, from which originated Jainism and Buddhism. In the same period, the first Upanishads were written.