The negative impact of judicial inefficiency on investment decisions has been examined theoretically, supported by aggregate empirical studies at the country level. Whether this effect is observed at the firm level, however -and under what circumstances and through what channels it occurs- has yet to be determined. This paper fills the gap by analyzing the problem empirically for the period 2002–2016 using information from 650,000 firms (3.5 million observations). Our approach is novel, because it shows that the impact is greater in large companies than small ones, that it occurs more strongly in industrial companies, and that the civil (private) jurisdiction is the crucial one in achieving efficiency improvements. These findings are important for aggregate productivity growth.