During the Roman emperor Diocletian’s bloody persecution of Christians in 303, Nicholas was imprisoned. However, when Constantine the Great became emperor in 306, he legalized Christianity and made it the official religion of the Roman Empire. Nicholas was freed.