Hi, I am learning English.

Here is my question.The right answer is A, but why can not we use "hadn't been" here?

It ..... until the Fourth Dynasty that the most famous pyramids were built.
A) wasn't
B) hadn't been
C) hasn't been
D) isn't
E) wouldn't have been