Duringthe drillingprocedure, the mudfiltratescontinuouslypenetrate into the formation because of the unbalance between the mud columnpressure in the boreholeand formation pressure.
If a stable column of mud has been set up in the well, keeping the oil at bay through its sheer weight, the next step would be to set cement in the well and seal it off permanently.