Grammar · Particles
が, the subject marker
The pattern
[Subject] が [verb / adjective]
[Subject] ga [verb / adjective]
が marks the subject, and it points at new information: the thing the listener did not already know. It is also required with あります, います, すき, きらい, じょうず and ほしい.
The mistake to avoid
English says 'I like cats', so learners reach for を. In Japanese the cat is the subject of the liking, so it takes が.
Examples
Rōmaji help
犬がいます。
いぬが います。
inu ga imasu.
There is a dog.
猫が好きです。
ねこが すきです。
neko ga suki desu.
I like cats.
雨が降っています。
あめが ふっています。
ame ga futte imasu.
It is raining.
私は頭が痛いです。
わたしは あたまが いたいです。
watashi wa atama ga itai desu.
I have a headache.