Parliamentary democracies use the vote of confidence procedure, which links the survival of a government with that of a bill, in order to discipline members of the majority. In this paper I investigate the role that the vote of confidence procedure has on public good provision and show that it has unintended negative consequences: even when efficient, public goods may be turned down in favor of earmarked projects. I use a laboratory experiment to test my model and show that the increase in voting cohesion comes at the cost of a 23 % reduction in public good provision and more unequal earmarking.