牙行 first appeared in the Tang dynasty and became a regulated trade by the Ming, when the state issued
牙帖 licenses and collected commissions. The agents themselves were called
牙人 or
牙郎. The institution faded after the Republic introduced modern commercial law.