A colorectal surgeon specializes in diagnosing and treating conditions related to the colon and rectum, providing tailored treatment plans and surgical interventions as necessary.