One day a young girl offered him rice when he was in the river bathing himself. As the five ascetics saw this, they were shocked and left him. However, Siddhartha then realized a new path, called the Middle Way. This would involve a balance between extreme luxury and extreme suffering.
Later that evening, Siddhartha sat under a Bodhi tree and meditated for several days to purify his mind. During these days he had to overcome several threats including one of Mara who is an evil demon who tried to disrupt his enlightened one. Siddhartha overcame this threat and banished Mara for good.
After this experience, Siddhartha finally found the answer to the question of suffering that he had tried so hard to reach. In this moment he became enlightened and become the Buddha which means “he who is awake.” After this he continued to teach his ways in order to lead others along the path of enlightenment.