What is one similarity between Algeria and Nigeria?

A. Both were British colonies before winning independence.
B. Both achieved independence largely through peaceful means.
C. Both were able to set up stable democratic governments.
D. Both faced periods of religious conflict and violence.

D. Both faced periods of religious conflict and violence.