Our understanding of the hepatic consequences of severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) infection and its resultant coronavirus disease 2019 (COVID-19) has evolved rapidly since the onset of the pandemic. In this Review, we discuss the hepatotropism of SARS-CoV-2, including the differential expression of viral receptors on liver cell types, and we describe the liver histology features present in patients with COVID-19. We also provide an overview of the pattern and relevance of abnormal liver biochemistry during COVID-19 and present the possible underlying direct and indirect mechanisms for liver injury. Furthermore, large international cohorts have been able to characterize the disease course of COVID-19 in patients with pre-existing chronic liver disease. Patients with cirrhosis have particularly high rates of hepatic decompensation and death following SARS-CoV-2 infection and we outline hypotheses to explain these findings, including the possible role of cirrhosis-associated immune dysfunction. This finding contrasts with outcome data in pharmacologically immunosuppressed patients after liver transplantation who seem to have comparatively better outcomes from COVID-19 than those with advanced liver disease. Finally, we discuss the approach to SARS-CoV-2 vaccination in patients with cirrhosis and after liver transplantation and predict how changes in social behaviours and clinical care pathways during the pandemic might lead to increased liver disease incidence and severity.