HBx is a multifunctional hepatitis B virus (HBV) protein that is crucial for HBV infection and pathogenesis and a contributing cause of hepatocyte carcinogenesis. However, the host targets and mechanisms of action of HBx are poorly characterized. We show here that expression of HBx in Caenorhabditis elegans induces both necrotic and apoptotic cell death, mimicking an early event of liver infection by HBV. Genetic and biochemical analyses indicate that HBx interacts directly with the B-cell lymphoma 2 (Bcl-2) homolog CED-9 (cell death abnormal) through a Bcl-2 homology 3 (BH3)-like motif to trigger both cytosolic Ca2+ increase and cell death. Importantly, Bcl-2 can substitute for CED-9 in mediating HBx-induced cell killing in C. elegans, suggesting that CED-9 and Bcl-2 are conserved cellular targets of HBx. A genetic suppressor screen of HBx-induced cell death has produced many mutations, including mutations in key regulators from both apoptosis and necrosis pathways, indicating that this screen can identify new apoptosis and necrosis genes. Our results suggest that C. elegans could serve as an animal model for identifying crucial host factors and signaling pathways of HBx and aid in development of strategies to treat HBV-induced liver disorders.