In this paper, we provide a new framework for analyzing corruption in public bureaucracies. The standard way to model corruption is as an example of moral hazard, which then leads to a focus on better monitoring and stricter penalties with the eradication of corruption as the final goal. We propose an alternative approach which emphasizes why corruption arises in the first place. Corruption is modeled as a consequence of the interaction between the underlying task being performed by bureaucrat, the bureaucrat's private incentives and what the principal can observe and control. This allows us to study not just corruption but also other distortions that arise simultaneously with corruption, such as red-tape and ultimately, the quality and efficiency of the public services provided, and how these outcomes vary depending on the specific features of this task. We then review the growing empirical literature on corruption through this perspective and provide guidance for future empirical research.