We investigated the effects of wall- and tree-type fences on the airflow and fine particular matter (PM2.5) concentration around a school using a computational fluid dynamics (CFD) model. First, we validated the simulated wind speeds and PM2.5 concentrations against measured values, and the results satisfied the recommended criteria of the statistical validation indices used. Then, we evaluated the fence effects for 16 inflow directions by conducting numerical simulations with different fence types and heights. With east–southeasterly inflow, relatively high PM2.5 from the road was transported to the school. However, the wall-type fence prevented the PM2.5 from the road from entering the school, and the PM2.5 concentration decreased significantly downwind of the fence. With east–northeasterly inflow, the horizontal wind speed decreased due to the drag caused by the tree-type fence, resulting in a shift in the flow convergence region. The PM2.5 concentration decreased in the region of strengthened upward flow. This occurred because the number of pollutants transported from the background decreased. A comparison of the two fence types revealed that the effect of the tree-type fence on inbound pollutants was more significant, due to increased upward flows, than the effect of the wall-type fence.