King Hamlet is the murdered father of Prince Hamlet in Shakespeare’s Hamlet. He appears as a ghost in Act I to reveal that his brother Claudius poisoned him, seized the throne, and married his widow Gertrude. The ghost’s demand for vengeance drives the entire plot.
There is no character named “King Hamlet” in any short-story version; the play is the primary and authoritative source.