Polycyclic aromatic hydrocarbons (PAHs) upset the basic biological parameters of the soil, such as enzymatic activity, which can be used to identify the direction and intensity of organic and mineral substance transformation in the soil environment. The aim of this study was to determine the impact of soil contamination with naphthalene, phenanthrene, anthracene and pyrene at rates of 0–4000 mg kg−1 DM (dry matter) of soil on the activity of acid phosphatase and alkaline phosphatase. An analysis was also conducted on how some organic substances, such as cellulose, sucrose and compost at rates of 0 and 9 g kg−1 DM alleviate the PAH impact on the enzymes under study. The experiment was carried out in a laboratory with loamy sand as the soil material. Phosphatase resistance (RS) and soil resilience (RL) were calculated. The enzyme activity was found to depend significantly on the PAH rate, time of PAH deposition in soil and the type of organic substance added to the soil. The activity of acid and alkaline phosphatase increased with the degree of soil contamination with PAHs. Naphthalene had the greatest stimulating effect on enzyme activity. Biostimulation of soil with cellulose, sucrose and compost had a positive effect on acid and alkaline phosphatase activity, with cellulose and compost being the most effective in boosting acid and alkaline phosphatase activity, respectively. Naphthalene had the greatest effect on acid and alkaline phosphatase resistance and pyrene had the least effect. Low RL indices indicate that the presence of PAHs permanently disturbed the activity of acid and alkaline phosphatase.