单项选择题

The wall was built along the river _____ floods.

A.in case of
B.in light of
C.in spite of
D.in favor of