单项选择题

Thousands of people took part in the work when the old temple ______.

A.was rebuilding
B.would be rebuilt
C.was being rebuilt
D.had been rebuilt