Their Story
He was arrested and cruelly tortured during the persecution of Diocletian (Diocletian was Roman emperor 284–305; the 'Great Persecution' of 303–311, when imperial edicts ordered churches and Scriptures destroyed and Christians forced to sacrifice to the Roman gods), but held fast to his faith, and in the end he was let go.
Athanasius became a Christian through Zosimus and was baptized, and the two are remembered together. The sources tell this part differently: Wikipedia says Athanasius was his guard and was moved by seeing him survive the torture, while Baring-Gould, following the Greek Menaea (the Eastern Church's monthly books of saints' services), says Zosimus converted and baptized him after going back to his desert, where Zosimus later died in his cell. Later legends add many wonders to his life.