The present invention relates to a composition for preventing or treating liver cancer containing ginsenoside F2 as an active ingredient. Specifically, the composition according to the present invention kills liver cancer cells, specifically inhibits the formation of liver cancer, and reduces the expression of alanine aminotransferase (ALT) or aspartate aminotransferase (AST), without affecting normal hepatocytes, and thus can be usefully used as a therapeutic agent for liver cancer.