While prior literature focuses on the effect of ex ante litigation occurrence risk on insider trading, this paper examines how the merits and rigorousness of actual litigation affect insider trading behavior for both defendant firms and their industry peers. Using a large litigation sample from 1996 to 2009, we find a significant decrease in the intensity of the insider stock sales for defendant firms following lawsuits that score high in a composite strength index that captures the merits and rigorousness of the litigation. Further analyses indicate that the decrease is mainly driven by the decline in opportunistic insider selling. We also find the decrease to be more pronounced for the defendant firms with lower levels of ex ante litigation risk. Finally, we find a significant decrease in opportunistic insider selling for industry peers of defendant firms following lawsuits, especially when the lawsuits are strong, suggesting a positive externality of shareholder litigation. This paper provides the first evidence on the existence of and variations in the deterrent effect of actual class action lawsuits on insider trading.