が住んでいた

… lived

→ が
phrase Common #5,729
… lived が marks the subject of 住んでいた, the past form meaning “lived” or “was living.”
JA: この町に祖父が住んでいた。
EN: My grandfather lived in this town.

以前恐ろしい怪物が住んでいた。

A terrifying monster once lived there.

その森の中に老夫婦が住んでいた。

An elderly couple lived in that forest.

ここは昔、私の家族が住んでいた所です。

This is where my family used to live.

昔々、美しい少女が住んでいた。

Once upon a time, a beautiful girl lived there.

昔々ある村にひとりの老人が住んでいた。

Once upon a time, an old man lived in a village.

その当時、そこには未開民族が住んでいた。

At that time, a primitive tribe lived there.

その昔ある村にある老人が住んでいた。

Once upon a time, an old man lived in a village.

昔、イングランドにたいへん意地の悪い王様が住んでいた。

Once upon a time, there lived a very mean king in England.

父の言ったとおり本当に小人が住んでいたのね

So there really were little people living there, just like Dad said.

— Arrietty (2010)

その村にかわいい少女が住んでいた。

A cute girl lived in that village.

アリエッティお前が生まれる前にはこの屋敷にも―他にふたつの家族が住んでいた

Arrietty, before you were born, there were two other families living in this house...

— Arrietty (2010)

昔、その国に賢い王様が住んでいた。

Long ago, a wise king lived in that country.