Its main function is to protect the stargazer from anything that may threaten the fish.
(Its main function; is; to protect the stargazer from anything) (anything; may threaten; the fish)
Its main function anything
is may threaten
to protect the stargazer from anything
the fish