A soliloquy is a speech delivered by a character alone on stage, expressing inner thoughts and feelings directly to the audience. No other characters hear it. It reveals motives, internal conflicts, or plot-critical information.
Used since ancient Greek theatre, soliloquies are prominent in Shakespeare—Hamlet's "To be or not to be," Macbeth's "Tomorrow and tomorrow," and Julius Caesar's "Friends, Romans, countrymen" (though technically a monologue). They provide unique audience access to character psychology.