To exist or be present (used for animate beings such as people and animals).
猫が部屋にいる。
There is a cat in the room.
彼女は今ここにいると思う。
I think she's here now.
子どもたちが庭で遊んでいる。
Children are playing in the yard.
ここにはもう誰もいない。
There is no one here anymore.
To stay or remain in a place (to be staying somewhere).
週末は実家にいるつもりだ。
I plan to stay at my parents' home for the weekend.
今日は会社にいるので、夕方まで連絡が取れます。
I'll be at the office today, so you can reach me until evening.
荷物が届くまでここにいてください。
Please stay here until the package arrives.
Auxiliary use after the -te form indicating a continuing action (progressive: '...-ing').
今、宿題をしている。
I'm doing my homework now.
彼はずっとテレビを見ている。
He has been watching TV the whole time.
花が咲いている。
The flowers are blooming.
Auxiliary use after the -te form indicating a resultant or continuing state (having ...-ed / being ...ed).
窓が開いている。
The window is open.
彼は結婚している。
He is married.
靴が汚れているから洗った方がいい。
Your shoes are dirty, so you should wash them.