~ために (purpose)
Do something in order to reach a goal
You'll be able to explain the intended purpose behind a deliberate action.

父は旅行するためにお金を貯めています。
chichi wa ryokou suru tame ni okane o tamete imasu.
What do you think this sentence means?
My father is saving money to travel.
Act toward a deliberate goal
Purpose ~ために links an intentional goal to the action taken to achieve it. It answers what the action is for.
日本で働くために日本語を勉強しています。
nihon de hataraku tame ni nihongo o benkyou shite imasu.
I am studying Japanese to work in Japan.
Form and use ~ために (purpose)
The goal is usually something the actor can deliberately do. For a desired ability or prevention of an unintended event, ように is often more natural. Noun + のために can also name a beneficiary.
日本で働くために日本語を勉強しています。
nihon de hataraku tame ni nihongo o benkyou shite imasu.
I am studying Japanese to work in Japan.
家族のために料理します。
kazoku no tame ni ryouri shimasu.
I cook for my family.
日本の大学に入るために、毎日勉強しています。
nihon no daigaku ni hairu tame ni, mainichi benkyou shite imasu.
I'm studying every day so that I can get into a Japanese university.
新しいパソコンを買うために、アルバイトをしています。
atarashii pasokon o kau tame ni, arubaito o shite imasu.
I'm working part-time to buy a new computer.
健康のために、毎朝走っています。
kenkou no tame ni, maiasa hashitte imasu.
I run every morning for my health.
7 more examples in the grammar path — free for a limited time.