Hamlet derives from the **12th-century Danish legend of Amleth**, recorded by **Saxo Grammaticus** in Gesta Danorum (Books 3–4).
| Amleth (Legend) | Hamlet (Play) |
|---|---|
| Father (Horwendil) killed by brother (Feng) | King Hamlet killed by Claudius |
| Amleth feigns madness to survive | Hamlet puts on "antic disposition" |
| Amleth kills spy hidden in mother's room | Hamlet kills Polonius behind arras |
| Sent to England with death warrant | Sent to England with death warrant |
| Alters letters; companions executed | Rewrites commission; R&G die |
| Returns, burns palace, kills Feng, becomes king | Returns, kills Claudius, dies himself |
Shakespeare also knew Belleforest's French adaptation (1570) and possibly a lost English "Ur-Hamlet" (Kyd?).