Bismuth layered structure ferroelectrics (BLSFs), also known as Aurivillius phase materials, are ideal for energy-efficient applications, particularly for solar cells. This work reports the first comprehensive detailed theoretical study on the fascinating structural, electronic, and optical properties of XNb2Bi2O9 (X = Ca, Ba, Be, Mg, Sr). The Perdew–Burke–Ernzerhof approach and generalized gradient approximation (GGA) are implemented to thoroughly investigate the structural, bandgap, optical, and electronic properties of the compounds. The optical conductivity, band topologies, dielectric function, bandgap values, absorption coefficient, reflectivity, extinction coefficient, refractive index, and partial and total densities of states are thoroughly investigated from a photovoltaics standpoint. The material exhibits distinct behaviors, including significant optical anisotropy and an elevated absorption coefficient > 105 cm−1 in the region of visible; ultraviolet energy is observed, the elevated transparency lies in the visible and infrared regions for the imaginary portion of the dielectric function, and peaks in the optical spectra caused by inter-band transitions are detected. According to the data reported, it becomes obvious that XNb2Bi2O9 (X = Ca, Ba, Be, Mg, and Sr) is a suitable candidate for implementation in solar energy conversion applications.