Gray rami communicantes are nerve fibers that connect the sympathetic ganglia to spinal nerves, allowing sympathetic nerve signals to travel to various parts of the body. They contain mostly unmyelinated postganglionic fibers, facilitating the distribution of autonomic signals.