This paper studies the design of tax systems that implement a planner's secondbest allocation in a market economy. An example shows that the widely used Mirrleesian (1976) tax system cannot implement all incentive-compatible allocations. Hammond's (1979) "principle of taxation" proves that any incentive-compatible allocation can be implemented through at least one tax system. However, this tax system is often undesirable since it severely restricts the choice space of agents in the economy. In this paper we derive necessary and suficient conditions to verify whether a given tax system can implement a given incentive-compatible allocation. We show that when an incentive-compatible allocation is on the Pareto frontier, and/or surjective onto ...