 Nicholas was born in the Italian Peninsula and had become a friend of the Patriarch Photios.He fell into disfavor after Photios' dismissal in 886 and retired to a monastery.Emperor Leo VI the Wise retrieved him from the monastery and made him "mystikos", a dignity designating either the imperial secretary or a judicial official.