From 1391 he served as a chancellor in the court of the queen, and on 4 December 1392 was appointed Bishop of Kraków.
He occupied an important position in the queen's court from 1391, and this led to his appointment as bishop of Kraków on 4 December 1392.