One day in the palace Siddartha decided to sneak out the palace with his friends. When he came out he saw three things. A old man, Poor man, and a dead corpse.He learned that to not waste his life.
He decided to in a cave a pray. He prayed for days without drinking or eating anything. He then realized that he shouldn't just stay in a cave and pray for his entire life.
He then sat under beneath a bodhi tree. Then Siddartha got absorbed into a deep meditation, he reflected on his life and determined to penetrate it's truth. He then achieved enlightenment and became Buddha.