Octopuses have specialized skin cells called chromatophores, which contain pigments that can be expanded or contracted to change color and pattern. This allows octopuses to blend in with their surroundings, making it easier for them to camouflage and avoid predators. Additionally, they can also change the texture of their skin to mimic the appearance of rocks, algae, or other objects in their environment.