Government agencies that license dealers and salespeople, issue titles and registrations, record liens and temporary plates, and in some US states also adjudicate dealer-OEM franchise disputes.
DMVs are one player in the car dealerships industry, and an industry of their own, with their own suppliers, customers, software, regulators, and money flows. This full map is on the roadmap.
Meanwhile: how dmvs fit into car dealerships