How Buddha got enlightenment?

It is said that after fighting after Mara - an evil spirit that tempted him with worldly affairs and desires, prince Siddhartha reached the stage of enlightenment. This was when he turned into Buddha at the mere age of 35 years only. He then travelled to deer park Banaras and where he preached to his followers the first sermon. He also outlined the basic principles of Buddhism. He left the comfort of the home and this helped him to walk the path of higher learning. In another case, it is said that Sidharth was sitting under the Bodhi tree and he became deeply involved in the meditation process. This reflected on the experience of life and determined to penetrate the truth. This helped him to transform into the Buddha and attain enlightenment.