In a dynamic setting, housing capital is both an asset and a consumption good. But should it be taxed like other forms of consumption or like other forms of capital? We analyze this question by considering the taxation of housing capital in a version of the neoclassical growth model. We derive the optimal tax treatment of housing capital vis-à-vis the tax treatment of both business capital and other forms of consumption allowing for relatively general preferences. We show that for a class of utility functions that includes the standard Cobb-Douglas function, the second-best optimum can be achieved with a simple tax structure where housing construction is taxed at the same rate as non-housing consumption and the tax rate on the imputed rent equals the tax rate on the return to business capital in every period. We also show how the optimal tax structure depends on the elasticities of substitution between housing, non-housing consumption, and leisure. Our numerical analysis shows that the optimal tax burden on housing capital is indeed very sensitive to household preferences.