Octopuses are able to camouflage themselves by changing the color and texture of their skin to match their surrounding environment. They have special cells called chromatophores that contain different colored pigments, which they can expand or contract to create different patterns and colors. Additionally, they can also change the texture of their skin by using muscles to create bumps, ridges, and spikes, allowing them to blend in seamlessly with their surroundings.