Traffic code (also motor vehicle code) refers to the collection of local statutes, regulations, ordinances and rules that have been officially adopted in the United States to govern the orderly operation and interaction of motor vehicles, bicycles, pedestrians and others upon the public (and sometimes private) ways.
The traffic code generally includes provisions relating to the establishment of authority and enforcement procedures, statement of the rules of the road, and other safety provisions. Administrative regulations for driver licensing, vehicle ownership and registration, insurance, vehicle safety inspections and parking violations may also be included, though not always directly related to driving safety. Violations of traffic code (i.e., a "moving violation") are often dealt with by forfeiting a fine in response to receiving a valid citation ("getting a ticket"). Other violations, such as drunk driving or vehicular homicide are handled through the criminal courts, although there may also be civil and administrative cases that arise from the same violation (including payment of damages and loss of driving privileges). In some jurisdictions there is a separate code-enforcement branch of government that handles illegal parking and other non-moving violations (e.g., noise and other emissions, illegal equipment). Elsewhere, there may be multiple overlapping police agencies patrolling for violations of state or federal driving regulations.