There is a variety of fish that bury themselves in the sand. Stargazers are one of them. Others include Cory and Eels. Fish that bury themselves in the sand use it in order to hide from predators and from potential prey. If they are successfully camouflaged, a buried fish can ambush another passing fish, crab, or other potential meal.