The primary purpose of the first council was to collect and codify the Buddha's teachings (Sutta Pitaka) and monastic discipline (Vinaya Pitaka).