We have investigated by spectroscopic ellipsometry (SE, 190-1700 nm) the optical properties of uniform, amorphous thin films of Ta 2 o 5 and nb 2 o 5 as deposited and after annealing, and after so-called "doping" with ti atoms which leads to mixed oxides. ta 2 o 5 and ti:ta 2 o 5 are currently used as high-index components in Bragg reflectors for Gravitational Wave Detectors. Parallel to the optical investigation, we measured the mechanical energy dissipation of the same coatings, through the so-called "loss angle" φ = Q −1 , which quantifies the energy loss in materials. By applying the well-known Cody-Lorentz model in the analysis of Se data we have been able to derive accurate information on the fundamental absorption edge through important parameters related to the electronic density of states, such as the optical gap (E g) and the energy width of the exponential Urbach tail (the Urbach energy E U). We have found that E U is neatly reduced by suitable annealing as is also perceptible from direct inspection of Se data. ti-doping also points to a minor decrease of E U. the reduction of E U parallels a lowering of the mechanical losses quantified by the loss angle φ. the correlation highlights that both the electronic states responsible of Urbach tail and the internal friction are sensitive to a self-correlation of defects on a medium-range scale, which is promoted by annealing and in our case, to a lesser extent, by doping. these observations may contribute to a better understanding of the relationship between structural and mechanical properties in amorphous oxides.