Currently, metamaterials are actively used in the creation of microwave and optic devices for various purposes. This is due to their non-traditional properties, compared to dielectric, conductive and other materials. One type of metamaterial is chiral media, which contain conductive microelements of mirror asymmetric shape. Such metamaterials have dispersion and, as a consequence, it is necessary to take it into account when developing various microwave structures. The work demonstrates taking into account the dispersion of the dielectric constant and the chirality parameter for calculating waveguide and reflecting structures with homogeneous and inhomogeneous chiral layers. The work carried out an electrodynamic analysis of the reflective properties of an inhomogeneous chiral layer and a rectangular waveguide, with a homogeneous layer of chiral metamaterial located in the transverse plane. The work has developed a method for calculating the reflection and transmission coefficients of an optical wave from the inhomogeneous chiral structure under consideration, which is based on the use of the differential sweep method. When constructing a mathematical model, we took into account the cross-polarization of the optical wave field, which consists in the appearance of orthogonal components during the interaction of the field with a chiral metamaterial. The solution to the problem was reduced to a matrix differential equation for the unknown reflection coefficients of the main and cross-polarized components of the optical field. The work examined chiral metamaterials with linear and parabolic inhomogeneity profiles. The results of the work can be applied in the design of new microwave and optics devices with layers of metamaterial, which can expand their functionality.