an analysis of hamlets madness in hamlet a play by william shakespeare The theme of madness defines shakespeare's hamlet  most notably, hamlet  and ophelia characterize the idea of madness in this play  hamlet's madness  likely stems from an actual mental illness, most likely a.