The six teachers of the Samaññaphala Sutta
TeacherView as reported in Buddhist texts
Purana KassapaDeeds bring neither merit nor demerit
Makkhali GosalaFate (niyati) decides everything; souls pass through a fixed series of births - leader of the Ajivikas
Ajita KesakambaliMaterialism: a person is made of physical elements and nothing survives death
Pakudha KaccayanaA set of unchanging elements exists; nothing truly kills or is killed
Sanjaya BelatthiputtaScepticism: refused to say yes or no to any proposition
Nigantha NataputtaThat is, Mahavira - the leader of the Niganthas (Jainas)

Gosala - niyati (Ajivika). Ajita - materialism (Lokayata). Sanjaya - scepticism. Nigantha Nataputta - Mahavira. Barabar caves - Ajivikas, under Ashoka.

Key takeaways: the Buddha and Mahavira were two of many Shramana teachers. Know the doctrines linked with the six teachers, the Ajivikas and their Mauryan caves, and the urban, mercantile, Magadhan setting that gave these movements patrons.