In through the wall imaging systems, wall parameters like its thickness and dielectric constant play an important role in the true and correct image formation of an object behind the wall made of various materials like brick cement, wood, plastic, etc. Incorrect estimation of these parameters leads to dislocation of the object and smearing or blurriness of the image too. A new autofocusing technique for a stepped frequency continuous wave -based radar at the frequency of 1–3 Ghz has been developed that corrects the wall's parameters like its thickness and dielectric constant and provides a better focused image of the target. For this purpose, a peak signal to noise ratio -based autofocusing technique has been developed by using curve fitting and the genetic algorithm. It is observed that the proposed technique has capability to focus the image up to good extent.