It came as a joyous daybreak to end the long night of their captivity.

Which is the best meaning for captivity as it is used in the second paragraph?
A) a long journey
B) a decaying portion
C) freedom to move about
D) confinement or slavery