The preterite is generally used for an action that has been completed in the past, which has a definite beginning and end point Example:Anoche fui a la fiesta The
In general, the preterite refers to completed actions, and the imperfect refers to interrupted or repeated actions. So if you want to say "I did my homework", you would use the