This paper studies how punishment for past offenses affects future compliance behavior and isolates deterrence effects mediated by learning. Using administrative data from speed cameras that capture the full driving histories of more than a million cars over several years, we evaluate responses...