You use comparative + than to express how two people or things are different.
Example: Hamlet is longer than Romeo and Juliet
You use a superlative to say that a thing or person is the most of a group.
Example: Hamlet is the longest of all the plays.