Texture in a photograph is the visual representation of a tactile quality of an object's surface. This could include the smoothness of glass, the crosshatch of fibers in a shirt, or the deep pits of volcanic rock.
Texture is brought to life by lighting the object from the side or back at low angles. This creates the pockets of contrast needed to capture surface bumps and ridges. If texture is an important aspect of your shot, then pay careful attention to lighting.
Texture adds another dimension of interest to the photo since it can capture a viewer's interest and appeal to their sense of touch. Texture also adds visual weight and volume to shapes, creating the illusion of three dimensions.
Our eyes love to examine and compare textures, and will be drawn to areas where textures are found. Rough textures will attract attention and activate eye movement, but can overshadow the form and color.
Areas of detailed texture within the photo may distract the viewer from focusing on your subject
Learn to see texture. Then learn to use it effectively in your photos.
Ask yourself what is the dominant texture in this shot, what textures will create interest and empathy, what textures create dimension and depth, and what textures will distract my viewer.