In Byzantine service
After a few years in Kievan Rus', Harald and his force of around 500 men moved on south to Constantinople (Miklagard), the capital of the Eastern Roman Empire (also known today – but not to contemporaries – as the Byzantine Empire), probably in 1033 or 1034, where they joined the Varangian Guard. Although the Flateyjarbók maintains that Harald at first sought to keep his royal identity a secret, most sources agree that Harald and his men's reputation was well known in the east at the time. While the Varangian Guard was primarily meant to function as the emperor's bodyguard, Harald was found fighting on "nearly every frontier" of the empire. He first saw action in campaigns against Arab pirates in the Mediterranean Sea, and then in inland towns in Asia Minor / Anatolia that had supported the pirates. By this time, he had, according to Snorri Sturluson (a 12th-century Icelandic historian, poet, and politician), become the "leader over all the Varangians". By 1035, the Byzantines had pushed the Arabs out of Asia Minor to the east and southeast, and Harald took part in campaigns that went as far east as the Tigris River and Euphrates River in Mesopotamia, where according to his skald (poet) Þjóðólfr Arnórsson (recounted in the sagas) he participated in the capture of eighty Arab strongholds, a number which historians Sigfus Blöndal and Benedikt Benedikz see no particular reason to question. Although not holding independent command of an army as the sagas imply, it is not unlikely that King Harald and the Varangians at times could have been sent off to capture a castle or town. During the first four years of the reign of Byzantine Emperor Michael IV the Paphlagonian, Harald probably also fought in campaigns against the Pechenegs.
Thereafter, Harald is reported in the sagas to have gone to Jerusalem and fought in battles in the area. Although the sagas place this after his expedition to Sicily, historian Kelly DeVries has questioned that chronology. Whether his trip was of a military or peaceful nature would depend on whether it took place before or after the 1036 peace treaty between Michael IV and the Muslim Fatimid Caliph Ma'ad al-Mustansir Billah (in reality the Caliph's mother, originally a Byzantine Christian, since the Caliph was a minor), although it is considered unlikely to have been made before. Modern historians have speculated that Harald may have been in a party sent to escort pilgrims to Jerusalem (possibly including members of the Imperial family) following the peace agreement, as it was also agreed that the Byzantines were allowed to repair the Church of the Holy Sepulchre. Furthermore, this may in turn have presented Harald with opportunities to fight against bandits who preyed on Christian pilgrims.
In 1038, Harald joined the Byzantines in their expedition to Sicily, in George Maniakes' (the sagas' "Gyrge") attempt to reconquer the island from the Muslim Saracens, who had established the Emirate of Sicily on the island. During the campaign, Harald fought alongside Norman mercenaries such as William Iron Arm in the battles fought at Messina and Rometta, and also played a vital role in capturing Syracuse. According to Snorri Sturluson, Harald captured four towns on Sicily. In 1041, when the Byzantine expedition to Sicily was over, a Lombard-Norman revolt erupted in southern Italy, and Harald led the Varangian Guard in multiple battles. Harald fought with the Catepan of Italy, Michael Dokeianos with initial success, but the Normans, led by their former ally William Iron Arm, defeated the Byzantines in the Battle of Olivento in March, and in the Battle of Montemaggiore in May. After the defeat, Harald and the Varangian Guard were called back to Constantinople, following Maniakes's imprisonment by the emperor and the onset of other more pressing issues. Harald and the Varangians were thereafter sent to fight in the southeastern European frontier in Bulgaria, where they arrived in late 1041. There, he fought in the army of Emperor Michael IV in the Battle of Ostrovo of the 1041 campaign against the Bulgarian uprising led by Peter Delyan, which later gained Harald the nickname the "Bulgar-burner" (Bolgara brennir) by his skald.
Harald was not affected by Maniakes's conflict with Emperor Michael IV, and received honours and respect upon his return to Constantinople. In a Greek book written in the 1070s, the Strategikon of Kekaumenos, Araltes (i.e. Harald) is said to have won the favour of the emperor. The book says that the Byzantine emperor first appointed him manglabites (possibly identified with the title protospatharios), a soldier of the imperial guard, after the Sicilian campaign. Following the campaign against the Bulgarians, in which Harald again served with distinction, he received the rank while at Mosynopolis of spatharokandidatos, identified by DeVries as a promotion to the possibly third highest Byzantine rank, but by Mikhail Bibikov as a lesser rank than protospatharios that was ordinarily awarded to foreign allies to the emperor. The Strategikon indicates that the ranks awarded to Harald were rather low, since Harald reportedly was "not angry for just having been appointed to manglabites or spatharokandidatos". According to his skald Þjóðólfr Arnórsson, Harald had participated in eighteen greater battles during his Byzantine service. Harald's favour at the imperial court quickly declined after the death of Michael IV in December 1041, which was followed by conflicts between the new emperor Michael V and the powerful empress Zoe.
During the turmoil, Harald was arrested and imprisoned, but the sources disagree on the grounds. The sagas state that Harald was arrested for defrauding the emperor of his treasure, as well as for requesting marriage with an apparently fictional niece or granddaughter of Zoe, called Maria (his suit supposedly being turned down by the empress because she wanted to marry Harald herself). William of Malmesbury states that Harald was arrested for defiling a noble woman, while according to Saxo Grammaticus he was imprisoned for murder. DeVries suggests that the new emperor may have feared Harald because of his loyalty to the previous emperor. The sources also disagree on how Harald got out of prison, but he may have been helped by someone outside to escape in the midst of the revolt that had begun against the new emperor. The Morkinskinna suggests that he was rescued by a rich and pious Byzantine widow.
While some of the Varangians helped guard the emperor, Harald became the leader of the Varangians who supported the revolt. The emperor was in the end dragged out of his sanctuary, blinded and exiled to a monastery, and the sagas claim that it was Harald himself who blinded Michael V (or at least claimed to have done so). Blinding was a standard penalty for deposed Byzantine emperors and it was probably carried out under Harald's supervision, not as a heroic act of vengeance, but as part of his duties as an officer commanding a unit of the imperial guard.