Through dialogue, the writer portrays the character’s motivations, flaws, knowledge, fears, personality quirks, and gives each character a distinct voice. A reader learns a lot about somebody’s mindset, background, emotional state, and level of expertise from how they speak.