Use ために for purpose and understand its causal meaning.
The rule
Word in the form of dictionary + ために indicates a goal: 日本へ行くために勉強します. noun + のために can also express an objective or a beneficiary. ために can also express a cause in certain contexts: 雨のために中止になりました (cancelled because of the rain).
Examples
日本へ行くために、日本語を勉強しています。
I study Japanese to go to Japan.
家族のために料理を作りました。
I made a meal for my family.
大雨のために、試合が中止になりました。
The game was cancelled because of the heavy rains.
Remember
- Dictionary word + ために: to achieve a goal.
- noun + のために: in the interest of / for.
- ために can also express a cause depending on the context.
In everyday life
日本語を勉強するために、日本へ行きます。
I'm going to Japan to study Japanese.
健康のために毎日歩きます。
I walk every day for my health.
Common mistake
For a purpose related to a non-voluntary result or capacity, ように is often more appropriate.