What is the imperfect tense used for?

A: One time events in the past.
B: Future events that will happen
C: Hypothetical scenarios or uncertainty.
D: Describe actions that used to happen or happen repeatedly in the past

D: Describe actions that used to happen or happen repeatedly in the past