Objective Gene detection and immune microenvironment detection in liver cancer can guideanti-tumor therapy,but there are few studies on gene detection and microenvironment detection in liver cancer. In this study,we reported the results of two cases of hepatic carcinoma,one is hepatocellular carcinoma and the other is intrahepatic cholangiocarcinoma,and provided preliminary insightsfor the treatment of hepatic carcinoma in the future. Methods In this study,thetumorspecimensoftwopatientsweretestedby multipleximmunohistochemistry/immunofluorescence techniques and tumor gene sequencing. Both patients were under follow- up observation. Results Both patients were belonged to immune non-response type. The overall results showed that the effect of single drug immunotherapy may not be ideal. Partial gene detection results suggested that immune checkpoint blockade may be effective for both patients . Neither patient received immunotherapy. Conclusion The results of these two patients suggested that the effect of immunotherapy is not satisfactory. But immunotherapy is a promisingtreatment for cancerat present, and combinedimmunotherapy maybe helpful for liver cancer.