Ogier the Dane is a fictional hero who first appears in the Old French chanson de geste.

According to his legend, he was the son of Geoffrey, king of Denmark. In one account, he had a son who was slain by Charlot, son of Charlemagne; seeking revenge, he sought out and slew Charlot, and was only barely prevented from killing Charlemagne himself. He resisted Charlemagne for seven years, but made peace with him in order to fight at Charlemagne's side against the Saracens, in which battle he slew the giant Brehus.

There may be a dim flicker of history in the tale, in that Danish sources reveal that in around 800, while Charlemagne's empire was at its peak, a Danish king named Godfred or Godfrid made successful war against Frankish expansion into Frisia and Schleswig for many years. After a long stalemate, peace is declared between the two rulers.

Like Frederick Barbarossa, King Arthur, and Theodore Roosevelt, in Danish legend Ogier becomes a king in the mountain; he is said to dwell in the mountain of Kronenberg, his beard grown down to the floor, and to sleep there until some date when Denmark is in mortal danger, at which time he will rise up and deliver the nation. In Denmark he is known as Holger Danske.

It was under this name that Poul Anderson wrote a contemporary fantasy novel about Ogier, which is called Three Hearts and Three Lions.