Optical phonons and the phase transition of relaxor ferroelectric ceramics SrxBa1−xNb2O6 (SBN) and Cay(Sr0.5Ba0.5)1−yNb2O6 (CSBN) with different composition (, ) have been investigated by variable-temperature Raman scattering and spectroscopic ellipsometry. The anomalous temperature dependence of Tauc gap energy (Et) is used to fit the phonon energy dependence of the permittivity, and the Raman intensity of some interesting optical phonons can be ascribed to the phase transition from a ferroelectric to a paraelectric structure. The Curie temperature of SBN decreases from 556 to 359 K with increasing Sr composition, which can be attributed to the substitution of smaller Sr2+ for Ba2+. On increasing the Ca composition, however, the phase transition temperature of CSBN remains nearly unchanged at about 350 K. This could be due to the fact that most doped Ca2+ ions move into the oxygen ion site and exhibit no obvious effect on the vibrational properties. Therefore, the general disorder which results from Sr2+ substituting Ba2+ , dominates the phase transition process for SBN-based ferroelectric oxides. Meanwhile, the dielectric functions from 200 to 600 K have been evaluated with the aid of the Tauc–Lorentz model. The electronic transition is located at about 5 eV and decreases with increasing temperature for all the samples. Moreover, the phase transition temperature range derived from the spectroscopic ellipsometry agrees well with that from the Raman scattering. It reveals that the variation of the fundamental energy gap may be associated with the phase transition of SBN ceramics. Both Raman scattering and spectroscopic ellipsometry are proven to be a effective method of exploring the phase transition of ferroelectric oxides.