He lived a lavish life in the palace, but all the time felt a growing inclination to renounce the world. He left Constantinople and came by sea to Alexandria and fled into the wilderness.
The passage describes a character who, despite his comfortable life in the palace, feels a strong pull towards simplicity and freedom.  He chooses to leave behind the comforts of his palace life and seek solace in the wilderness.