The border agencies that clear every car a ship discharges and every car it loads for export: they check manifests, collect tariffs and taxes, enforce safety and emissions import rules, and block stolen-vehicle exports.
Customs agencies are one player in the car carrier ships 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 customs agencies fit into car carrier ships