He was born near Sophia in Bulgaria during the reign of the Emperor Boris. When his parents died he withdrew from the world to a cave high in the mountains, where he gave himself to the ascetical struggle. There the Prologue says that he 'endured many assaults both by demons and men, from robbers and from his kinsmen.' In time he moved to the mountain of Rila, where he lived in a hollow tree, eating only the wild herbs and fruits there. On Rila he saw no human being for many years, but was eventually discovered by a shepherd, after which his fame spread quickly: many came to him for counsel and for the healing of diseases, and Peter, King of Bulgaria, visited him for advice. Many people seeking their salvation settled near him, and soon a church and monastery developed around him. St John reposed in 946 and appeared to his disciples after his death. His relics are venerated at the monastery of Rila, which has for centuries been a lighthouse of Orthodox spirituality in Bulgaria.