The author constructs a model in which the state apparatus is controlled by a self-interested ruler, who tries to divert resources for his own consumption, but who can also invest in socially productive public goods.