The present invention relates to a pharmaceutical composition for inhibiting cancer metastasis or cancer, comprising an octopus fennel extract or a fraction thereof as an active ingredient, and a food composition. Since the composition comprising the octopus fennel extract or its fractions of the present invention has the advantages of low cytotoxicity and little side effects, it can inhibit cancer metastasis, and thus can be used as a therapeutic agent for cancer metastasis or cancer metastasis-related diseases, And a functional food preparation capable of preventing or improving a related disease.본 발명은 팔각회향 추출물 또는 이의 분획물을 유효 성분으로 포함하는, 암 전이 억제 또는 암 예방용 약학 조성물, 및 식품 조성물에 관한 것이다. 본 발명의 팔각회향 추출물 또는 이의 분획물을 포함하는 조성물은 세포 독성이 낮고 부작용이 거의 없는 장점을 보유하면서도 암 전이를 억제할 수 있으므로, 암전이 또는 암 전이 관련 질환의 치료제, 또는 암 전이 또는 암 전이 관련 질환을 예방 또는 개선할 수 있는 기능성 식품 제제 등으로 유용하게 이용될 수 있다.