This paper presents a novel mass conservative, positivity preserving wetting and drying treatment for Godunov-type shallow water models with second-order bed elevation discretization. The novel method allows to compute water depths equal to machine accuracy without any restrictions on the time step or any threshold that defines whether the finite volume cell is considered to be wet or dry. The resulting scheme is second-order accurate in space and keeps the C-property condition at fully flooded area and also at the wet/dry interface. For the time integration, a second-order accurate Runge–Kutta method is used. The method is tested in two well-known computational benchmarks for which an analytical solution can be derived, a C-property benchmark and in an additional example where the experimental results are reproduced. Overall, the presented scheme shows very good agreement with the reference solutions. The method can also be used in the discontinuous Galerkin method. Copyright © 2016 John Wiley & Sons, Ltd.