A soliloquy is used in drama to

develop a strong relationship between two characters.
insert humor and lightness into a dramatic scene.
persuade readers toward a specific political viewpoint.
allow the audience direct access to a character’s feelings.

allow the audience direct access to a character's feelings.