Use the preterite tense to talk about what has already happened or actions that have been completed. The preterite tense is often used with specific time frames, eg yesterday, last week ...
The preterite tense: How to talk about the past in Spanish. Sometimes we want to talk about things that have already happened and for that you need the preterite, which is a past tense.