This paper analyzes the impact of harassment prevention laws on harassment in the workplace using a unique Japanese survey dataset that provides information on harassment. The harassment prevention laws went into effect only for large companies in 2020, and I conducted difference-in-difference (DID) analysis using the institutional changes by controlling for unobserved macro shocks. The results showed that the harassment prevention law reduced harassment by about 7%.