Two sentences, same verb, same past:
El verano pasado viví en Lima. Cuando era niño, vivía en Lima.
English gives both the same shape: "Last summer I lived in Lima." "When I was a kid, I lived in Lima." The verb form does not budge. Spanish changes the verb because it is answering a question English never makes you answer: is this a closed block, or an open stretch that was going on?
That question is the whole of preterite vs imperfect. The two sets of endings, the irregulars, the sentences where both tenses appear side by side, and the verbs like saber that seem to change meaning all follow from it.
Why Spanish has two past tenses
The split is not about time. Both tenses talk about the past, and both can mean yesterday or 1998. The split is about aspect, meaning the speaker's viewpoint on the event. The bounded view is called perfective, the open view imperfective 2.
The preterite (also pretérito indefinido) presents the event as a closed whole: its start, its end, or its total extent is in view. It happened, it finished, it can be boxed.
The imperfect (imperfecto) presents the event from inside, with no edge in view. It was going on, it happened again and again with no limit drawn, or it was simply how things were.
English has some of this. "I was living in Lima" and "I used to live in Lima" both refuse the box, the way the imperfect does. But English never forces the choice, and for states it offers nothing at all: "I knew him" has no "I was knowing him" counterpart. Spanish forces the choice every time you put a verb in the past, which is why it feels like a trap rather than a tool.
The one question
Ask whether the thing being said has its edges in view.
If yes, take the preterite. Ayer llovió: it rained, and it stopped. La reunión duró cuatro horas: four hours is a duration, but a closed one. Fui al parque tres veces: a count closes the set. Mi abuela fue una mujer muy valiente: a whole life summed up in one judgement.
If no, take the imperfect. Llovía y no podíamos salir: weather as backdrop. La reunión duraba ya cuatro horas cuando se fue la luz: the clock seen from inside, with no end in sight. De niño jugaba fútbol: a habit with no limit drawn on it. Tenía mucho miedo: a state.
The film analogy holds at one point. The imperfect is what is already on screen, the set, the weather, the mood, the activity in progress. The preterite is the cut that makes the story move. That gives a backup test when the question feels abstract: delete the clause. If the story loses a plot point, it was preterite. If it only loses atmosphere, it was imperfect.
Three warnings about applying this.
Length is not the criterion. Viví veinte años en Lima covers twenty years and is still bounded, because those years form one closed block. Estaba cansado might be true for ten minutes and is still open, because nothing marks an end. Learn boundaries, not durations. The advice that imperfect means long and preterite means short is the commonest source of wrong choices.
Repeatedness is not the criterion either. Iba al gimnasio todos los días is a habit and takes the imperfect. Fui al gimnasio tres veces esa semana is also a habit, but the count boxes it up, so it takes the preterite.
Time markers are symptoms, not causes. Ayer usually brings the preterite, but Ayer llovía cuando salí is normal, because ayer is not what the sentence presents as the event. Decide the viewpoint first and the markers follow.
The conjugations
Search for "preterite vs imperfect conjugations" and you get two big tables that look equally hard. They are not. The imperfect is almost free, and the preterite carries the memorization.
| preterite | hablar (-ar) | comer / vivir (-er / -ir) |
|---|---|---|
| yo | hablé | comí |
| tú | hablaste | comiste |
| él / ella / usted | habló | comió |
| nosotros | hablamos | comimos |
| vosotros | hablasteis | comisteis |
| ellos / ellas / ustedes | hablaron | comieron |
| imperfect | hablar (-ar) | comer / vivir (-er / -ir) |
|---|---|---|
| yo | hablaba | comía |
| tú | hablabas | comías |
| él / ella / usted | hablaba | comía |
| nosotros | hablábamos | comíamos |
| vosotros | hablabais | comíais |
| ellos / ellas / ustedes | hablaban | comían |
Three things are worth noticing. First, in the past, -er and -ir verbs share their endings completely. The present-tense difference between comemos and vivimos disappears in both past tenses, so the three classes collapse into two shapes while the same person markers do the work (Spanish Verb Conjugation: How -ar, -er and -ir Verbs Share One Set of Endings). Second, in the preterite the -ar verb takes -ó in the third person while -er/-ir take -ió: habló against comió. A written accent is often all that separates "I do" from "he did", as in hablo and habló. Third, the imperfect is built by stressing the ending and never touching the stem, so there are no stem changes and exactly three irregular verbs: ser (era, eras, era, éramos, erais, eran), ir (iba, ibas, iba, íbamos, ibais, iban) and ver (veía, veías, veía, veíamos, veíais, veían). Those three carry a large share of everyday background sentences, such as era tarde or iba a decirte, so learning them pays at once.
The preterite irregulars come in families 4. The largest keeps a new stem and adds one set of endings, -e, -iste, -o, -imos, -isteis, -ieron, with no written accent: tener → tuve, estar → estuve, andar → anduve, poder → pude, poner → puse, saber → supe, haber → hube, querer → quise, venir → vine, hacer → hice, hiciste, hizo, hicimos, hicisteis, hicieron. A smaller group has a j stem (decir → dije, traer → traje, conducir → conduje) and drops the i in the third person plural: dijeron, trajeron. Beyond pattern, ser and ir share identical forms (fui, fuiste, fue, fuimos, fuisteis, fueron, where context decides between "I was" and "I went"), and dar and ver take -er/-ir endings on a one-letter stem (di, diste, dio; vi, viste, vio). Add the spelling adjustments in the yo form of -car/-gar/-zar verbs (busqué, llegué, empecé) and the vowel shifts in the third person of -ir verbs (pedí, pidió, pidieron).
The practical consequence is encouraging. Mid-sentence, when a background clause arrives, the imperfect is formable on the spot and the preterite may not be. In doubt, the imperfect is the shape you can produce without guessing.
When both tenses appear in one sentence
This is where the distinction stops being theory. A piece of narration runs: Era viernes y estaba muy emocionado por cenar con mis amigos. Eran las seis de la tarde cuando salí de mi casa y empecé a caminar. Cuando llegué, mis amigos no estaban 1. The imperfect holds the day, the hour, the excitement and the empty table. The preterite delivers leaving, starting to walk, arriving. Cuando plus preterite marks the interruption, while mientras plus imperfect keeps two ongoing strands running side by side.
Sometimes both tenses fit the same slot, and the switch changes what counts as the event. La fiesta fue ruidosa reports the party as a finished unit you can sum up. La fiesta era ruidosa describes the scene as you found it, with no boundary. That overlap is real, and native speakers use it constantly. It is also why the choice is a matter of meaning rather than correctness: a clause in the "wrong" tense is usually just framed differently from what the writer intended.
The verbs that seem to change meaning
Sabía la verdad is "I knew the truth", and Supe la verdad ayer is "I found out". Conocía a María is "I knew her", and Conocí a María en 2010 is "I met her". Quería ir is "I wanted to go", and Quise ir, pero no había entradas is "I tried to go, but there were no tickets". No quería ir is "I didn't want to go", and No quise ir is "I refused". Podía correr mucho de joven is "I could run a lot when I was young", and Por fin pude abrir la puerta is "I finally managed to open it" 3.
These are usually handed over as a list to memorize, but they are the same rule applied to a harder kind of verb. Saber, conocer, querer and poder name states and attitudes, and a state has no natural edge. The preterite does not change what the verb means. It supplies the missing edge, and the only edges a state offers are the moment it began, the moment it got decided, or the moment it ended in success or refusal. So supe is the moment knowing began, which English calls finding out. Conocí is the moment acquaintance began, which English calls meeting. Pude is the ability reaching its conclusion, which English calls managing. No quise is the wish hitting a wall, which English calls refusing, while no quería leaves the wish open and unacted.
Keep these as typical readings rather than new dictionary meanings, because the sentence decides 3. Siempre lo supe uses the preterite despite siempre, since the sentence presents the knowing as one closed whole: I knew it all along.
Nothing here depends on how long ago the event happened. Both tenses describe five minutes ago, and both describe 1960. What Spanish asks at every past verb is only this: are the edges in view, or are you standing inside the scene?