The extensor hallucis longus is a skeletal muscle located in the anterior compartment of the leg which functions to extend the big toe and assists in dorsiflexing the foot at the ankle. It plays a crucial role in activities like walking, running, and maintaining balance.