He studied under one of the earliest professional Byzantinists, Vasily Vasilievsky, at the University of St Petersburg and later taught Arabic language there. Between 1897 and 1900, he furthered his education in Paris. In 1902, he accompanied Nicholas Marr in his trip to Saint Catherine's Monastery in Sinai.