A nonlinear relation between the pore diameter and anodising voltage is established for nanoporous anodic titanium oxide (ATO) and anodic aluminium oxide (AAO). The pore diameters of both ATO and AAO have been found to increase with the anodising voltage and drop down when the voltage exceeds a critical value. The origin for the existence of this maximum value of pore diameter in AAO and ATO is discussed.