Answer and Explanation:
The purpose of Hamlet's ruminations on Alexander the Great and Julius Caesar in lines 197-215 was to convey the message that it doesn't matter how popular we are in life. We all are the same in the end. He talked about Alexander the Great, who has the world at his back, but there was no difference between a common man's death and a great man when he got dead. Because they both are made up of mud, and in the end, they have to get back into it to fill the hole. The human who has been made up of mud or clay at the end has to get back into that mud and have to fill up the place in the wall. And that was the theme of these monologues that we stink the same when we die, and we all are going to die and have to become part of the mud, so why we are longing for this world.