Hrelja was first mentioned in the 1320s as the commander of a Serbian military detachment involved in that time's Byzantine civil war. With his detachment, Hrelja assisted Byzantine EmperorAndronikos II Palaiologos. By that time, Hrelja was already the ruler of a large domain in the region of Štip and east of the city; in the early 1330s, his domain expanded to include Strumica. In 1334–1335, Hrelja reconstructed the church of the Rila Monastery and built the so-called Hrelja's Tower, the monastery's defensive tower and its oldest structure surviving today. The stone tower is high and has an almost square foundation. There are five stories, not counting the cellar, with a chapel devoted to the Transfiguration of Christ on the top floor; the chapel features fragments of 14th-century frescoes. The tower has a single entrance on the first floor, at the time probably reached through a ladder; from the entrance, the chapel can be accessed using the stone stairs built into the walls. It is thought that Hrelja's Tower was used as a protection for the monks, as well as a cache for valuables, a jail or a place to isolate mentally-ill people. A two-storey belfry was attached to the tower in 1844. Since 1983, the tower has been under UNESCO protection as part of the Rila Monastery, a World Heritage Site. The inscription on the tower testifies that by the time of its construction Hrelja still acknowledged Serbian suzerainty: Hrelja donated real estate in the valley of Strumica to the Hilandar monastery, another fact testifying to his economic power; Hrelja also sponsored the construction of the Church of St Michael in Štip. In the late 1330s, Hrelja broke away from Serbia and became an autocrat with his capital at Strumica; he formally recognized Byzantine authority, but had vast political autonomy. Factors that contributed to Hrelja's decision to break away from the Serbian realm included his economic independence, his own armed forces and the frontier location of his estate, bordering the Second Bulgarian Empire and the Byzantine Empire to the northeast, south and southeast. With another Byzantine civil war in the early 1340s, Hrelja was sought as an ally by both sides. Hrelja supported John VI Kantakouzenos, who awarded him the city ofMelnik and the title of prōtosebastos. However, Hrelja did not actively engage in the conflict and pursued his own interests. After Kantakouzenos suffered some heavy losses in the civil war and retreated to Stefan Dušan's court in the summer of 1342, he agreed to sacrifice his ally in return for Serbian support. Although Hrelja once again recognized Dušan's suzerainty and ceded the city of Melnik, he died on 27 December 1342 in the Rila Monastery. According to Bulgarian sources, He is said to have been killed by Serb mercenaries, hired by Emperor Stefan Dušan. Shortly prior to his death Hrelja had become a monk in the monastery under the name of Hariton. He was buried in the church he had reconstructed in the Rila Monastery. His epitaph testifies that he was awarded the title of caesar, most likely by John VI. In Bulgarian and Serbian epic folklore, Hrelja is glorified as an ally of Prince Marko and a protector of the people against the Ottoman Turks.