问题

The island country had fought _____ the invaders for more than ten years _____it became an independent republic.[ ]

A: against; before
B: against; when
C: with; since
D: for; while
正确答案是: