Wikipedia
Horwendill was a legendary Jutish chieftain, who is the prototype for William Shakespeare's King Hamlet, Prince Hamlet's father. He appears in Chronicon Lethrense and in Saxo Grammaticus' Gesta Danorum (book 3).
The Chronicon Lethrense (and the included Annales Lundenses) tell that the Danish king Rorik Slengeborre put Horwendill (who he calls Orwendel) and Feng as his rulers in Jutland, and gave his daughter to Horwendill as a reward for his good services. Horwendill and the daughter had the son Amblothe ( Hamlet). The jealous Feng killed Horwendill and took his wife.
Saxo Grammaticus has a slightly different version of events. Saxo states that Horvendill and Feng were the sons of Jutland's ruler Gervendill, and succeeded him as the rulers of Jutland. On his return from a Viking expedition in which he had slain Koll, King of Norway, Horvendill married Gerutha, the Danish king Rørik Slyngebond's daughter, who bore him a son, Amleth. But Feng, out of jealousy, murdered Horvendill and persuaded Gerutha to become his wife, on the plea that he had committed the crime for no other reason than to avenge her of a husband by whom she had been hated.