The current study used 2D resistivity imaging to identify a shallow subsurface cavity in Haditha, western Iraq. The cavities and voids near the surface restrict land use and create a variety of geotechnical hazards, such as land subsidence, infrastructure damage, and structural cracks. As a result, the presence of an underground weak zone is a major concern for engineers before beginning any development, given the risk of future disasters. The four 2D resistivity traverses in this study were carried out using a dipole-dipole array with a - spacing of 3 m and an n-factor of 6. The data was inverted using RES2DINV software, which employs robust inversion methods. The 2D inverse model reveals a shallow cavity ranging from 5 to 12 meters and a width of around 40 m.