The gel barrier formation by a gelling liquid (Colloidal Silica) injection in an unsaturated porous medium is investigated by developing a mathematical model and conducting numerical simulations. Gelation process is initiated by adding electrolytes such as NaCl, and the gel phase consisting of cross-linked colloidal silica particles grows as the gelation process proceeds. The mathematical model describing the transport and gelation of Colloidal Silica (CS) is based on coupled mass balance equations for the gel mixture (the sol phase plus the gel phase), gel phase (cross-linked colloidal silica particles plus water captured between cross-linked particles), and colloidal silica particles (discrete and cross-linked) and NaCl in the sol (suspension of discrete colloidal silica particles in water) and gel phases. The solutions in terms of volumetric fraction of the gel phase yield the gel mixture viscosity via the dependency on the volumetric fraction of gel phase. This dependency is determined from a kinetic gelation model with time-normalized viscosity curves. The proposed model is verified by comparing experimentally and numerically determined hydraulic conductivities of gel-treated soil columns at different CS injection volumes. The numerical experiments indicate that an impermeable gel layer is formed within the time period twice the gel-point in a one-dimensional flow system. At the same normalized time corresponding to twice the gel-point, the CS solutions with lower NaCl concentrations result in further migration and poor performance in plugging the pore space. The viscosity computation proposed in this study is compared with another method available in the literature. It is observed that the other method estimates the viscosity at the mixing zone higher than the one proposed by the authors. The proposed model can simulate realistic injection scenarios with various combinations of operating parameters such as NaCl concentration and NaCl mixing time, and thus providing guidelines in performing this technology on site.