The preterite speaks of an action that was completed in the past, such as: I went to the store; while the imperfect speaks of an action in the past, but without saying it was a completed action, such as: I was going to the store...
Pretérito:
Yo jugué al fútbol con mis amigos.
Imperfect:
Yo jugaba al fútbol con mis amigos.