One dimensional filtration problem in partially saturated and partially dried layered porous media is studied. Main difficulties are the occurrence of infinite value of capillary piezometric head in dry regions. The existence and uniqueness of the weak solutions is proved under natural conditions.