The artery associated with the anterior compartment of the leg is the anterior tibial artery, which originates from the popliteal artery in the posterior compartment of the leg and passes forward into the anterior compartment of the leg through an aperture in the interosseous membrane.