Later years
 
Increasing anti-German sentiment swept through Lombardy, culminating in the restoration of Milan in 1169. In 1174 Frederick made his fifth expedition to Italy. (It was probably during this time that the famous Tafelgüterverzeichnis, a record of the royal estates, was made.) He was opposed by the pro-papal Lombard League (now joined by Venice, Sicily, and Constantinople), which had previously formed to stand against him. The cities of northern Italy had become exceedingly wealthy through trade, representing a marked turning point in the transition from medieval feudalism. While continental feudalism had remained strong socially and economically, it was in deep political decline by the time of Frederick Barbarossa. When the northern Italian cities inflicted a defeat on Frederick at Alessandria in 1175, the European world was shocked. With the refusal of Henry the Lion to bring help to Italy, the campaign was a complete failure. Frederick suffered a heavy defeat at the Battle of Legnano near Milan, on 29 May 1176, where he was wounded and for some time was believed to be dead. This battle marked the turning point in Frederick's claim to empire. He had no choice other than to begin negotiations for peace with Alexander III and the Lombard League. In the Peace of Anagni in 1176, Frederick recognized Alexander III as pope, and in the Peace of Venice in 1177, Frederick and Alexander III were formally reconciled.

The scene was similar to that which had occurred between Pope Gregory VII and Henry IV, Holy Roman Emperor at Canossa a century earlier. The conflict was the same as that resolved in the Concordat of Worms: Did the Holy Roman Emperor have the power to name the pope and bishops? The Investiture controversy from previous centuries had been brought to a tendentious peace with the Concordat of Worms and affirmed in the First Council of the Lateran. Now it had recurred, in a slightly different form. Frederick had to humble himself before Alexander III at Venice. The emperor acknowledged the pope's sovereignty over the Papal States, and in return Alexander acknowledged the emperor's overlordship of the Imperial Church. Also in the Peace of Venice, a truce was made with the Lombard cities, which took effect in August 1178. The grounds for a permanent peace were not established until 1183, however, in the Peace of Constance, when Frederick conceded their right to freely elect town magistrates. By this move, Frederick recovered his nominal domination over Italy, which became his chief means of applying pressure on the papacy.

In a move to consolidate his reign after the disastrous expedition into Italy, Frederick was formally crowned King of Burgundy at Arles on 30 June 1178. Although traditionally the German kings had automatically inherited the royal crown of Arles since the time of Conrad II, Frederick felt the need to be crowned by the Archbishop of Arles, regardless of his laying claim to the title from 1152.

Frederick did not forgive Henry the Lion for refusing to come to his aid in 1176. By 1180, Henry had successfully established a powerful and contiguous state comprising Saxony, Bavaria, and substantial territories in the north and east of Germany. Taking advantage of the hostility of other German princes to Henry, Frederick had Henry tried in absentia by a court of bishops and princes in 1180, declared that imperial law overruled traditional German law, and had Henry stripped of his lands and declared an outlaw. He then invaded Saxony with an imperial army to force his cousin to surrender. Henry's allies deserted him, and he finally had to submit in November 1181. Henry spent three years in exile at the court of his father-in-law Henry II of England in Normandy before being allowed back into Germany. He finished his days in Germany, as the much-diminished Duke of Brunswick. Frederick's desire for revenge was sated. Henry the Lion lived a relatively quiet life, sponsoring arts and architecture. Frederick's victory over Henry did not gain him as much in the German feudalistic system as it would have in the English feudalistic system. While in England the pledge of fealty went in a direct line from overlords to those under them, the Germans pledged oaths only to the direct overlord, so that in Henry's case, those below him in the feudal chain owed nothing to Frederick. Thus, despite the diminished stature of Henry the Lion, Frederick did not gain his allegiances.

Frederick was faced with the reality of disorder among the German states, where continuous civil wars were waged between pretenders and the ambitious who wanted the crown for themselves. Italian unity under German rule was more myth than truth. Despite proclamations of German hegemony, the pope was the most powerful force in Italy. When Frederick returned to Germany after his defeat in northern Italy, he was a bitter and exhausted man. The German princes, far from being subordinated to royal control, were intensifying their hold on wealth and power in Germany and entrenching their positions. There began to be a generalized social desire to "create greater Germany" by conquering the Slavs to the east.

Although the Italian city states had achieved a measure of independence from Frederick as a result of his failed fifth expedition into Italy, the emperor had not given up on his Italian dominions. In 1184, he held a massive celebration when his two eldest sons were knighted, and thousands of knights were invited from all over Germany. While payments upon the knighting of a son were part of the expectations of an overlord in England and France, only a "gift" was given in Germany for such an occasion. Frederick's monetary gain from this celebration is said to have been modest. Later in 1184, Frederick again moved into Italy, this time joining forces with the local rural nobility to reduce the power of the Tuscan cities. In 1186, he engineered the marriage of his son Henry to Constance of Sicily, heiress to the Kingdom of Sicily, over the objections of Pope Urban III.

Third Crusade and death

Pope Urban III died shortly after, and was succeeded by Gregory VIII, who was more concerned with troubling reports from the Holy Land than with a power struggle with Barbarossa. After making his peace with the new pope, Frederick vowed to take up the cross at the Diet of Mainz in 1188. Frederick embarked on the Third Crusade (1189–92), a massive expedition in conjunction with the French, led by King Philip Augustus, and the English, under King Richard the Lionheart. Frederick organized a grand army of 100,000 men (including 20,000 knights) and set out on the overland route to the Holy Land; Some historians believe that this is an exaggeration, however, and that the true figure might be closer to 15,000 men, including 3,000 knights.
 
The Crusaders passed through Hungary, Serbia, and Bulgaria before entering Byzantine territory and arriving at Constantinople in the autumn of 1189. Matters were complicated by a secret alliance between the Emperor of Constantinople and Saladin, warning of which was supplied by a note from Sibylla, ex-Queen of Jerusalem. While in Hungary, Barbarossa personally asked the Hungarian Prince Géza, brother of King Béla III of Hungary, to join the Crusade. The king agreed, and a Hungarian army of 2,000 men led by Géza escorted the German emperor's forces. The armies coming from western Europe pushed on through Anatolia, where they were victorious in taking Aksehir and defeating the Turks in the Battle of Iconium, and entered Cilician Armenia. The approach of the immense German army greatly concerned Saladin and the other Muslim leaders, who began to rally troops of their own to confront Barbarossa's forces.

On 10 June 1190, Emperor Frederick Barbarossa drowned near Silifke Castle in the Saleph river. Accounts of the event are conflicting. Some historians believe he may have had a heart attack that complicated matters. Some of Frederick's men put him in a barrel of vinegar to preserve his body.

Frederick's death plunged his army into chaos. Leaderless, panicking, and attacked on all sides by Turks, many Germans deserted, were killed, or committed suicide. Only 5,000 soldiers, a small fraction of the original force, arrived in Acre. Barbarossa's son, Frederick VI of Swabia, carried on with the remnants of the German army, along with the Hungarian army under the command of Prince Géza, with the aim of burying the emperor in Jerusalem, but efforts to conserve his body in vinegar failed. Hence, his flesh was interred in the Church of St Peter in Antioch, his bones in the cathedral of Tyre, and his heart and inner organs in Tarsus.

The unexpected demise of Frederick left the Crusader army under the command of the rivals Philip II and Richard, who had traveled to Palestine separately by sea, and ultimately led to its dissolution. Richard continued to the East where he defeated Saladin in many battles, winning significant territories along the shores of Palestine, but ultimately failed to win the war by conquering Jerusalem itself before he was forced to return to his own territories in north-western Europe, known as the Angevin Empire. He returned home after he signed the Treaty of Ramla agreeing that Jerusalem would remain under Muslim control while allowing unarmed Christian pilgrims and traders to visit the city. The treaty also reduced the Latin Kingdom to a geopolitical coastal strip extending from Tyre to Jaffa.

Frederick and the Justinian code

The increase in wealth of the trading cities of northern Italy led to a revival in the study of the Justinian Code, a Latin legal system that had become extinct centuries earlier. Legal scholars renewed its application. It is speculated that Pope Gregory VII personally encouraged the Justinian rule of law and had a copy of it. The historian Norman Cantor described Corpus Iuris Civilis (Justinian Body of Civil Law) as "the greatest legal code ever devised". It envisaged the law of the state as a reflection of natural moral law (as seen by the men of the Justinian system), the principle of rationality in the universe. By the time Frederick assumed the throne, this legal system was well established on both sides of the Alps. He was the first to utilize the availability of the new professional class of lawyers. The Civil Law allowed Frederick to use these lawyers to administer his kingdom in a logical and consistent manner. It also provided a framework to legitimize his claim to the right to rule both Germany and northern Italy. In the old days of Henry V and Henry VI, the claim of divine right of kings had been severely undermined by the Investiture controversy. The Church had won that argument in the common man's mind. There was no divine right for the German king to also control the church by naming both bishops and popes. The institution of the Justinian code was used, perhaps unscrupulously, by Frederick to lay claim to divine powers.

In Germany, Frederick was a political realist, taking what he could and leaving the rest. In Italy, he tended to be a romantic reactionary, reveling in the antiquarian spirit of the age, exemplified by a revival of classical studies and Roman law. It was through the use of the restored Justinian code that Frederick came to view himself as a new Roman emperor. Roman law gave a rational purpose for the existence of Frederick and his imperial ambitions. It was a counterweight to the claims of the Church to have authority because of divine revelation. The Church was opposed to Frederick for ideological reasons, not the least of which was the humanist nature found in the revival of the old Roman legal system. When Pepin the Short sought to become king of the Franks in the 8th century, the church needed military protection, so Pepin found it convenient to make an ally of the pope. Frederick, however, desired to put the pope aside and claim the crown of old Rome simply because he was in the likeness of the greatest emperors of the pre-Christian era. Pope Adrian IV was naturally opposed to this view and undertook a vigorous propaganda campaign designed to diminish Frederick and his ambition. To a large extent, this was successful.

Charismatic Leader

Historians have compared Frederick to Henry II of England. Both were considered the greatest and most charismatic leaders of their age. Each possessed a rare combination of qualities that made him appear superhuman to his contemporaries: longevity, boundless ambition, extraordinary organizing skill, and greatness on the battlefield. Both were handsome and proficient in courtly skills, without appearing effeminate or affected. Both came to the throne in the prime of manhood. Each had an element of learning, without being considered impractical intellectuals but rather more inclined to practicality. Each found himself in the possession of new legal institutions that were put to creative use in governing. Both Henry and Frederick were viewed to be sufficiently and formally devout to the teachings of the Church, without being moved to the extremes of spirituality seen in the great saints of the 12th century. In making final decisions, each relied solely upon his own judgment, and both were interested in gathering as much power as they could.

In keeping with this view of Frederick, his uncle, Otto of Freising, wrote an account of Frederick's reign entitled Gesta Friderici I imperatoris (Deeds of the Emperor Frederick). Otto died after finishing the first two books, leaving the last two to Rahewin, his provost. The text is in places heavily dependent on classical precedent. For example, Rahewin's physical description of Frederick reproduces word-for-word (except for details of hair and beard) a description of another monarch written nearly eight hundred years earlier by Sidonius Apollinaris:

His character is such that not even those envious of his power can belittle its praise. His person is well-proportioned. He is shorter than very tall men, but taller and more noble than men of medium height. His hair is golden, curling a little above his forehead ... His eyes are sharp and piercing, his beard reddish [barba subrufa], his lips delicate ... His whole face is bright and cheerful. His teeth are even and snow-white in color ... Modesty rather than anger causes him to blush frequently. His shoulders are rather broad, and he is strongly built ...
Frederick's charisma led to a fantastic juggling act that, over a quarter of a century, restored the imperial authority in the German states. His formidable enemies defeated him on almost every side, yet in the end he emerged triumphant. When Frederick came to the throne, the prospects for the revival of German imperial power were extremely thin. The great German princes had increased their power and land holdings. The king had been left with only the traditional family domains and a vestige of power over the bishops and abbeys. The backwash of the Investiture controversy had left the German states in continuous turmoil. Rival states were in perpetual war. These conditions allowed Frederick to be both warrior and occasional peace-maker, both to his advantage.

Legend
 
Frederick is the subject of many legends, including that of a sleeping hero, like the much older British Celtic legends of Arthur or Bran the Blessed. Legend says he is not dead, but asleep with his knights in a cave in the Kyffhäuser mountain in Thuringia or Mount Untersberg in Bavaria, Germany, and that when the ravens cease to fly around the mountain he will awake and restore Germany to its ancient greatness. According to the story, his red beard has grown through the table at which he sits. His eyes are half closed in sleep, but now and then he raises his hand and sends a boy out to see if the ravens have stopped flying. A similar story, set in Sicily, was earlier attested about his grandson, Frederick II. To garner political support the German Empire built atop the Kyffhäuser the Kyffhäuser Monument, which declared Kaiser Wilhelm I the reincarnation of Frederick; the 1896 dedication occurred on 18 June, the day of Frederick's coronation.

In medieval Europe, the Golden Legend became refined by Jacopo da Voragine. This was a popularized interpretation of the Biblical end of the world. It consisted of three things: (1) terrible natural disasters; (2) the arrival of the Antichrist; (3) the establishment of a good king to combat the anti-Christ. These millennial fables were common and freely traded by the populations on Continental Europe. End-time accounts had been around for thousands of years, but entered the Christian tradition with the writings of the Apostle Peter. German propaganda played into the exaggerated fables believed by the common people by characterizing Frederick Barbarossa and Frederick II as personification of the "good king".

Frederick's uncle, Otto, bishop of Freising wrote a biography entitled The Deeds of Frederick Barbarosa, which is considered to be an accurate history of the king. Otto's other major work, The Two Cities was an exposition of the work of St. Augustine of Hippo of a similar title. The latter work was full of Augustinian negativity concerning the nature of the world and history. His work on Frederick is of opposite tone, being an optimistic portrayal of the glorious potentials of imperial authority.

Another legend states that when Barbarossa was in the process of seizing Milan in 1158, his wife, the Empress Beatrice, was taken captive by the enraged Milanese and forced to ride through the city on a donkey in a humiliating manner. Some sources of this legend indicate that Barbarossa implemented his revenge for this insult by forcing the magistrates of the city to remove a fig from the anus of a donkey using only their teeth. Another source states that Barbarossa took his wrath upon every able-bodied man in the city, and that it was not a fig they were forced to hold in their mouth, but excrement from the donkey. To add to this debasement, they were made to announce, "Ecco la fica", (meaning "behold the fig"), with the feces still in their mouths. It used to be said that the insulting gesture, (called fico), of holding one's fist with the thumb in between the middle and forefinger came by its origin from this event.

Issue

Frederick's first marriage, to Adelheid of Vohburg, did not produce any issue and was annulled. From his second marriage, to Beatrice of Burgundy, he had the following children: Beatrice (1162–1174). She was betrothed to King William II of Sicily but died before they could be married. Frederick V, Duke of Swabia (Pavia, 16 July 1164 – 28 November 1170). Henry VI, Holy Roman Emperor (Nijmegen, November 1165 – Messina, 28 September 1197).[89]
Conrad (Modigliana, February 1167 – Acre, 20 January 1191), later renamed Frederick VI, Duke of Swabia after the death of his older brother. Gisela (October/November 1168 – 1184). Otto I, Count of Burgundy (June/July 1170 – killed, Besançon, 13 January 1200). Conrad II, Duke of Swabia and Rothenburg (February/March 1172 – killed, Durlach, 15 August 1196). Renaud (October/November 1173 – in infancy). William (June/July 1176 – in infancy). Philip of Swabia (August 1177 – killed, Bamberg, 21 June 1208) King of Germany in 1198. Agnes (1181 – 8 October 1184). She was betrothed to King Emeric of Hungary but died before they could be married.