Complex sentence: He was cardinal-priest of the title of St. Damasus when he became Pope, which was done by forcibly dethroning his predecessor, Leo V, and imprisoning him, most likely around October 903.
Split into simpler sentences: He was cardinal-priest of the title of St. Damasus when he became Pope. His predecessor, Leo V, was deposed and imprisoned, most likely around October 903.