During colonial times, North Carolina was a key supplier of naval stores. The tar, pitch, and turpentine produced by our longleaf pine trees, bountiful in the eastern part of the state, were used to coat wooden ships to prevent leaking and damage from shipworms.
The relentless black substance would produce a displeasing smell, so some would use the term “Tar Boilers” to describe the people who harvested it.
And, of course, it was messy to work with, too, inevitably winding up on the feet of workers, says Bill Ferris, a professor of American studies at UNC.
Like tar to heels, the nickname stuck. It would take a while for “Tar Heels” to be used to describe the state and its people as a whole. As for what is likely the first documented use of the phrase “Tar Heels,” we can look to the Civil War. One of the most popular explanations for the name gaining traction is recorded in Histories of the Several Regiments and Battalions from North Carolina in the Great War 1861-1865.
Full Text ->
https://www.ourstate.com/why-is-north-carolina-called-the-tar-heel-state/