The primary function of the tibialis anterior is dorsiflexion of the foot, which refers to the action of lifting the front part of the foot upwards towards the shin. This function is essential for walking and running, as it allows for a proper heel-to-toe motion during the stride. Additionally, the tibialis anterior aids in inversion of the foot, which means turning the sole inward. By stabilizing the foot and maintaining balance, this muscle protects the body from falling over while walking on uneven surfaces. Associated movements like jumping and climbing stairs also benefit from its robust action, as it supports the foot during these activities and helps in absorbing shock.