Counterstaining is a technique used in histological staining to provide contrast to the primary stain. It involves the application of a secondary stain to highlight structures within the tissue that remain unstained or lightly stained by the primary stain. This helps in enhancing the visibility of the sample under a microscope and allows for a more detailed study of the tissue morphology.