This paper empirically evaluates the treatment effect of de facto pegged regimes on the occurrence of currency crises. To estimate the treatment effect of pegged regimes properly, we must carefully control for the self‐selection problem of regime adoption because a country's exchange rate regime choice is nonrandom. To address the self‐selection problem, we thus employ a variety of matching methods. We find interesting and robust evidence that (1) pegged regimes significantly decrease the likelihood of currency crises compared with floating regimes, and (2) pegged regimes with capital account liberalization significantly lower the likelihood of currency crises compared with other regimes. From the standpoint of the macroeconomic policy trilemma, we can reasonably conclude that pegged regimes with capital account liberalization are substantially less prone to speculative attacks because they can enhance greater credibility in their currencies by maintaining strict discipline for monetary and macroeconomic policies.