particle
location/direction/time marker
1. destination/direction marker
Marks the destination or target of movement. Used with verbs like ()く (go), ()る (come), (かえ)る (return). 学校(がっこう)()く (go to school).
I go to school.
I will go to Tokyo.
Please get on the train.
It has been three years since I came to Japan.
2. location of existence marker
Marks where something exists or is located. Used with いる/ある (to be/exist). (ねこ)部屋(へや)にいる (The cat is in the room).
The cat is in the room.
There is a book on the desk.
There's a convenience store near the station.
3. time marker
Marks specific points in time (dates, days, clock times). 三時(さんじ)()いましょう (Let's meet at 3 o'clock), 月曜日(げつようび)に (on Monday).
Let's meet at 3 o'clock.
I wake up at 7 o'clock.
There is a meeting on Monday.
I came to Japan in July.
Every morning I wake up at 6, leave home at 7, and arrive at work at 8.
4. indirect object marker
Marks the recipient of an action—the person to/for whom something is done. 友達(ともだち)(ほん)をあげた (I gave a book to my friend).
I gave a book to my friend.
I ask the teacher a question.
I called my mother.
I am teaching Japanese to children.
I received a present from a friend on my birthday and was very happy.
5. purpose marker
Marks the purpose of going somewhere, when followed by ()く/()る. Often with the masu-stem of verbs. 映画(えいが)()()く (go to see a movie).
I'm going to see a movie.
I'm going shopping.
Let's go eat.
I came to see my friend.
I'm planning to go hang out with friends this weekend, and I'm thinking about where to go.
6. agent marker (passive/causative)
Marks the agent in passive and causative constructions. 先生(せんせい)()められた (was praised by the teacher).
I was bitten by a dog.
I was praised by my teacher.
I got rained on.
I was woken up by my mother.

に is one of the most versatile particles in Japanese with many uses. Compare with へ (direction only, more abstract) and で (location of action). Key distinction: に marks where something EXISTS (いる/ある), while で marks where an ACTION takes place (()べる, (はたら)く, etc.). Time expressions: use に with specific times (三時(さんじ)に) but not with relative times (今日(きょう), 明日(あした), 来週(らいしゅう)).

Related Words