They are used to create emphasis and extra separation. The ones that link clauses are the simplest: take two (or more) independent clauses and place an em dash ...
em dashes | Real Grammar - WordPress.com
This summary was compiled by our editorial team from publicly available information for quick reading. For full details, refer to original reporting where available.