Also in the later days of the Upanishads, yoga developed as a philosophy of personal emancipation to overcome samsara. These principles were eventually written down in the Yoga Sutras (scriptures).
An ascetic named Patanjali is credited with starting the philosophical tradition of yoga.