The role of dialogue is to reveal character and add layers to the drama. In a play, practically the entire story is carried out on the shoulders of the dialogue. dialogue has to fit the tone and the pacing of the entire work, and it must be written in a way that it can be uttered much more easily.
First and foremost, dialogue unveils characters. A playwright needs to have a good idea who his main players are and who they will become at the end of the play, inside and out. Characters in a play speak through their own vocabulary, accent, and life experiences.