Formation of hydrophilic and hydrophobic gelling agent through the reaction between cross-linking polymer having reactive functional groups in both inorganic and organic polymer.