The aim of the study was to assess the quality of agricultural soils, which accumulate additional amounts of heavy metals from fertilization and modify their bioavailability, with the use of interdependencies between their biological and chemical properties conditioned by the distance from communication routes. Our results indicated that heavy metals had an impact on enzyme activity in soils and their accumulation was significantly related to the distance from the edge of the road, location of sampling sites, date of soil sampling, and years of research. It was found that the greatest amounts of zinc, cadmium, lead, and copper were accumulated at a distance of 5–20 m from the edge of the road. The highest enrichment factor and geoaccumulation index values were recorded for Pb, followed by Zn, Cu, and Cd. Principal component analysis and regression models showed that the activities of phosphatase and dehydrogenases seem to be the best bioindicators of contamination of roadside soils used for agricultural purposes. Since their activity is related to soil’s organic carbon content, inputs of organic fertilizers and crop residues should be ensured in the agroecosystems along roadsides.