This study analyzed 1,076 hepatocellular carcinoma patients from five public cohorts to create and validate a 24-gene prognostic signature based on pyroptosis-related genes. Patients with a high-risk score had significantly shorter overall survival than those with a low-risk score in training and validation cohorts.