Soliloquies are used as a device in drama to let a character make their thoughts known to the audience, address it directly or take it into their confidence. English Renaissance drama used soliloquies to great effect . Example An epitome of soliloquy is "To be, or not to be", the centerpiece of Shakespeare's Hamlet. "To be, or not to be–that is the question: Whether ’tis nobler in the mind to suffer The slings and arrows of outrageous fortune Or to take arms against a sea of troubles And by opposing end them. To die, to sleep– No more–and by a sleep to say we end The heartache, and the thousand natural shocks That flesh is heir to. ‘Tis a consummation Devoutly to be wished. To die, to sleep– To sleep–perchance to dream: ay, there’s the rub, For in that sleep of death what dreams may come When we have shuffled off this mortal coil, Must give us pause."
Soliloquies are used as a device in drama to let a character make their thoughts known to the audience, address it directly or take it into their confidence. English Renaissance drama used soliloquies to great effect , such as in the soliloquy "To be, or not to be", the centerpiece of Shakespeare's Hamlet. 
D
.
R
Example An epitome of soliloquy is
, such as in the soliloquy
D
"To be, or not to be–that is the question: Whether ’tis nobler in the mind to suffer The slings and arrows of outrageous fortune Or to take arms against a sea of troubles And by opposing end them. To die, to sleep– No more–and by a sleep to say we end The heartache, and the thousand natural shocks That flesh is heir to. ‘Tis a consummation Devoutly to be wished. To die, to sleep– To sleep–perchance to dream: ay, there’s the rub, For in that sleep of death what dreams may come When we have shuffled off this mortal coil, Must give us pause."