an analysis of the main character in macbeth by william shakespeare The tragedy, macbeth, was written by william shakespeare over the course of the play, the main character, macbeth, undergoes a continuous degradation of moral character he endures a change with the murder of king duncan that reduces him from his moral and good status this change of character from good to evil significantly affects macbeth.