BaSi2 is a potential thermoelectric material because of its very low thermal conductivity. Using the full-potential linearized augmented plane-wave method and semiclassical Boltzmann theory, thermoelectric transport properties of BaSi2 have been investigated. The calculations show that the thermoelectric properties can be remarkably improved by optimizing the carrier concentration. The linear response method within the framework of density functional theory was employed to investigate the underlying physics of heat transport. There are rather flat optical dispersion curves and low frequency of acoustic phonon modes in the phonon band structure of BaSi2. The low-lying optical phonon branch at the Γ point of the Brillouin zone (BZ) corresponds to rigid-unit vibration of the Si tetrahedron. The rigid-unit vibration mode confines the acoustic phonon modes and scatters the heat-carrying acoustic modes, leading to the low lattice thermal conductivity.