Soil compaction is generally viewed as one of the most serious soil degradation problems and a determining factor in crop productivity worldwide. It is imperative to understand the processes involved in soil compaction to meet the future global challenges of food security. In this work, we used co‐occurring keyword analysis to summarize 3491 papers on soil compaction over the past 40 years, elaborating on the main research focuses such as the causes, influencing factors, and effects of soil compaction on crops, and the mitigation and prevention of soil compaction. This review provides a comprehensive discussion of the effects of soil compaction, including altering soil structure, increasing bulk density (BD) and penetration resistance (PR), and reducing porosity and soil hydraulic properties. Notably, based on the 387 data points of 11 papers about BD, our results demonstrated soil compaction on average, increased BD by 7.6%, 6.9%, and 3.2% in the medium‐, coarse‐, and fine‐textured soils, respectively. Based on the 264 data points of 18 papers, in the 0–30 cm soil layer, compaction increased penetration resistance (by 91% in the coarse‐textured, 84.2% in the medium‐textured, and 8.8% in the fine‐textured soils). Compacted soil limits the access of crop roots to water and nutrients, leading to poor root development and reduced crop productivity. There was a difference in soil compaction sensitivity between the different crops, but crop growth and yield showed an overall worsening trend with increasing degrees of compaction. This review collected data points on 142 crop yields and found that wheat, barley, corn, and soybean yields decreased by an average of 4.1%, 15.1%, 37.7%, and 22.7%, respectively, in the BD range of 1.1–1.8 Mg/cm3 after compaction. Additionally, the effectiveness of different compaction mitigation measures, including natural, tillage, and biological, is systematically discussed. Compared with soil compaction mitigation measures, prevention should be the top priority although there is still a lack of practical prevention methods. Soil conditions and agricultural machinery type are the main factors affecting the risk of soil compaction in the process of soil compaction. Therefore, it is particularly important to optimize the soil working conditions in the field and the type of farm machinery used to reduce the risk of soil compaction. This initiative is pivotal for ensuring sustainable systems for food production and recovering crop productivity from compacted soil.