We consider an economy where contracts are necessary to encourage investments. Contract enforcement requires that a fraction of the agents work in the public sector and do not accept bribes. We find that: (1) It may be optimal to allow some corruption and not enforce property rights fully. (2) Less developed economies may choose lower levels of property right enforcement and more corruption. (3) There may exist a ‘free-lunch’ such that over a certain range it is possible simultaneously to reduce corruption, increase investment, and achieve a better allocation of talent.