The deep fibular nerve enters the dorsal aspect of the foot on the lateral side of the dorsalis pedis artery, and is parallel with and lateral to the tendon of the extensor hallucis longus muscle. Just distal to the ankle joint, the nerve gives origin to a lateral branch, which innervates the extensor digitorum brevis from its deep surface.