Atlantic cod are apex predators in the Baltic and adults are generally free from the concerns of predation. Juvenile cod, however, may serve as prey for adult cod, which sometimes practice cannibalism. Juvenile cod make substrate decisions based on risk of predation. Substrates refer to different feeding and swimming environments. Without apparent risk of predation, juvenile cod demonstrated a preference for finer-grained substrates such as sand and gravel-pebble. However, in the presence of a predator, they preferred to seek safety in the space available between stones of a cobble substrate. Selection of cobble significantly reduces the risk of predation. Without access to cobble, the juvenile cod simply tries to escape a predator by fleeing.