The preterite reports what happened. The imperfect describes what was going on. In a story the preterite moves things forward and the imperfect sets the scene.

preterite: it happened, it ended

one event Ayer comí paella. Yesterday I ate paella.at a point Llegó a las ocho. She arrived at eight.counted Fui tres veces. I went three times.a change Se puso triste. He became sad.

both in one sentence

The action in progress: imperfect. The event that cuts into it: preterite.

Dormía cuando llamaste. I was sleeping when you called.Mientras cocinaba, sonó el teléfono. While I was cooking, the phone rang.

imperfect: background and habit

the time Era tarde. It was late.age Tenía diez años. I was ten years old.weather Llovía. It was raining.habit Siempre comíamos a las dos. We always ate at two.habit De niño jugaba al fútbol todos los días. As a boy I played football every day.

which is which

side by side

preteriteimperfect
a single, completed eventdescription, background
first or last time, number of timeshabit: siempre, cada día
a change of state: se puso tristeage, the time, the weather
the interruption: cuando llamóthe action in progress: estaba…

words that point to one or the other

preteriteimperfect
ayer, anochesiempre, a menudo
el lunes, una vezcada día, todos los días
de repentemientras, de niño

They are hints. The meaning of the sentence decides.

verbs

verbs that are nearly always imperfect

In the past these describe a state.

imperfectimperfect
sereratenertenía
estarestabaquererquería
haberhabíasabersabía
Era tarde, había mucha gente y yo tenía sueño. It was late, there were a lot of people and I was sleepy.

in the preterite they become events

preteritewhat it sayspreteritewhat it says
supeI found outno quiseI refused
conocíI metpudeI managed to
quiseI triedhubothere was, it happened
Conocía a Ana. I knew Ana.Conocí a Ana en 2019. I met Ana in 2019.