How is an oral and maxillofacial surgeon different from a regular dentist?

What distinguishes an oral and maxillofacial surgeon from a general dentist in terms of education, training, and the types of procedures they perform? How do their roles differ when it comes to treating complex facial, jaw, or oral conditions, and in what situations would a patient need to see a specialist rather than a regular dentist?