A direct method is developed for determining the dielectric properties and thickness of lossy two-layered media. The technique is based on the study of the frequency response of the complex reflection coefficient. The frequency span must contain at least two adjacent extreme values of the real part of the input impedance. Monte Carlo simulations were produced in order to test the accuracy of the method. Applications in hydrology, engineering and environmental geology are discussed.