The brachial plexus is formed by the spinal nerves C5-T1 and divides into supraclavicular and infraclavicular parts. It gives rise to branches that innervate muscles and skin in the upper limb. In the forearm, the median nerve innervates flexor muscles and thenar muscles, and the radial and ulnar nerves innervate extensor muscles. Compression of the median nerve can cause carpal tunnel syndrome.