Real-world studies have reported reduced mortality in patients with idiopathic pulmonary fibrosis (IPF) treated with antifibrotic therapy; however, the initiation or discontinuation of therapy during these studies may have introduced bias. This study investigated the effect of antifibrotic therapy on mortality and other outcomes in patients with IPF using causal inference methodology.