Abstract: We analyze corruption in law enforcement: the payment of bribes to enforcement agents, threats to frame innocent individuals in order to extort money from them, and the actual framing of innocent individuals. Bribery, extortion, and framing reduce deterrence and are thus worth discouraging. Optimal penalties for bribery and framing are maximal, but, surprisingly, extortion should not be sanctioned. The state may also combat corruption by paying rewards to enforcement agents for reporting violations. Such rewards can partially or completely mitigate the problem of bribery, but they encourage framing. The optimal reward may be relatively low to discourage extortion and framing, or relatively high to discourage bribery.