The dorsal scapular nerve arises from the brachial plexus, specifically from spinal nerves C5 and C6. It provides motor innervation to the rhomboid muscle, which pull the scapula towards the spine.