The compaction curve is a graphical representation of the relationship between the moisture content and the dry density of a soil, used to determine the optimal moisture content for achieving maximum soil compaction. It is essential in geotechnical engineering for ensuring soil stability and strength in construction projects.