单项选择题

Sam: Was the driving pleasant when you went to Mexico last summer
Lili: No, it()for four days when we arrived, so the roads were very muddy.

A.was raining
B.had been raining
C.would be raining
D.rained