Transport properties of semiconductors are keys to the performance of many solid-state devices (transistors, data storage, thermoelectric cooling and power generation devices, etc.).Understanding of the transport details can lead to material designs with better performances. In recent years simulation tools based on first-principles calculations have been greatly improved, being able to obtain the fundamental ground state properties of materials (such as band structure and phonon dispersion) accurately. Accordingly, methods have been developed to calculate the transport properties based on an ab initio approach. In this review we focus on the thermal, electrical, and thermoelectric transport properties of semiconductors, which represent the basic transport characteristics of the two degrees of freedom in solids -electronic and lattice degrees of freedom.Starting from the coupled electron-phonon Boltzmann transport equations, we illustrate different scattering mechanisms that change the transport features and review the first-principles approaches that solve the transport equations. We then present the first-principles results on the thermal and electrical transport properties of semiconductors. The discussions are grouped based on different scattering mechanisms including phonon-phonon scattering, phonon scattering by equilibrium electrons, carrier scattering by equilibrium phonons, carrier scattering by polar optical phonons, scatterings due to impurities, alloying and doping, and phonon drag effect. We show how the first-principles methods allow one to investigate the transport properties with unprecedented details and also offer new insights to the electron and phonon transport. Current status of the simulation is mentioned when appropriate and some of the future directions are also discussed.