A line from the play Hamlet, by William Shakespeare. An officer of the palace guard says this after the ghost of the dead king appears, walking over the palace walls.
Note: “Something is rotten in the state of Denmark” is used to describe corruption or a situation in which something is wrong.