A dumpy level is primarily used in surveying and construction to measure height differences and establish horizontal levels. It aids in determining the elevation or height of points on the ground relative to a reference point, facilitating accurate construction and land development.