Why do people use dashes (-) in novels? What are their purpose?

Me and my boyfriend are writing a novel and I need to know because we are beginners and are about ready to send in a few chapters. So anyone with any information please let me know.