The Pandorica was a prison used to save the universe, it was a trap The Doctor could not resist. An allegiance was created including Daleks, Cybermen, Silurians,Judoon, and many more to imprison the greatest threat of the universe, which they believe is The Doctor.