We use colocalization and transcriptomic analyses to identify shared genetic variants, likely causal genes including ATP11A and DPP9, and important cellular contexts for critically ill COVID-19 and idiopathic pulmonary fibrosis. Here, ATP11A is linked to idiopathic pulmonary fibrosis.