Why did Christianity spread so successfully while the Roman Empire declined?

The rapid spread of Christianity coincided with the decline of the Roman Empire, and some historians believe that Christianity contributed to that decline.