The subject particle が
が marks the SUBJECT: who or what does the action or has the quality. It points at new or important information: 雨が降っています (あめが ふっています) "It's raining" (rain is what is falling).
The quick test for が versus は: with は, the news comes AFTER the particle (私は学生です answers "what are you?"). With が, the news comes BEFORE it (私がやります, "I'M the one who will do it"). That is why question words like だれ and 何 take が, and so does the answer.
Examples
- 雨が降っています。It's raining.
- だれが来ましたか。Who came?
- 庭に猫がいます。There is a cat in the yard.
- 私がやります。I'll do it. (I'm the one who will.)
Common mistakes
- だれは来ましたか。 → だれが来ましたか。A question word that is the subject takes が, never は. You can't make a topic out of something you don't know yet.
Related grammar
- The topic particle はTopic + は + comment
- There is: あります and いますPlace に Thing が あります / います
- Likes and skills: 〜が好きですPerson は Thing が 好き / 嫌い / 上手 / 下手 です
Part of the Japanese grammar guide. Levels are estimates; the JLPT publishes no official grammar list.