The monopoly of salt and iron was the earliest form of state monopoly of industry and commerce. Under Western Han Emperor Wu, with years of war and exhausted finances, from the Yuanshou era merchants such as Sang Hongyang were used to run the state monopoly: salt was boiled by the people but collected and sold by officials, iron smelted and sold directly by state works, a wine monopoly was added later, and the system of transport equalization and price stabilization adjusted prices. The debate of the Salt and Iron Conference of 81 BC was compiled as the Discourses on Salt and Iron, the worthy literati denouncing it as "contending with the people for profit," yet the state system largely continued. Thereafter salt revenue was the lifeline of the budget: after the An Lushan rebellion the Tang imposed a salt monopoly, and after Liu Yan's reform "half the realm's taxes came from salt"; the Song used the barter-and-certificate method and salt certificates, salt notes becoming quasi-money; the Ming-Qing licensed merchant monopoly made the Yangzhou salt merchants immensely rich, the wealthiest of the merchant groups, and tea, wine, alum and spices were also monopolized at times. Monopoly revenue long took thirty to fifty percent of the budget, supporting frontier defence and public spending such as grain transport, while breeding smugglers and salt lords — a thousand-year testing ground of the relation between state and market.