The past continuous is formed from the past tense of be with the -ing form of the verb:
We use the past continuous to talk about the past:
for something which continued before and after another action:
The children were doing their homework when I got home.
Compare:
I got home. The children did their homework.
and
The children did their homework when I got home.