The Upanishads introduced the idea of samsara, the continual cycle of rebirth in life. This process could only be ended with moksha or freedom from rebirth.
According to this teaching, one’s fate to be born into samsara was determined by karma, meaning actions that have moral value, and subsequently a consequence.