An overview is given on the electronic and optical properties of Si and Ge nanocrystals. We model freestanding Si and Ge nanocrystals passivated with H, with up to 363 group-IV atoms and 276 H and oxidized nanocrystals with additional silicon oxide shells, e.g. Si 41 (O 60 Si 42 )(O 108 Si 64 )H 148 . The results discussed are based on parameter-free calculations for relaxed atomic structures. The electronic states and the many-body effects are considered within the density-functional theory and the supercell method. Energy gaps are described within the Kohn-Sham independent-particle picture and within the independentquasiparticle picture, whereas electronic excitations are treated within the delta self-consistent method by pair excitation energies. The projector-augmented wave method allows the calculation of optical matrix elements, oscillator strengths, optical spectra, and radiative lifetimes. We discuss quantum confinement, structural relaxation, oxidation, and the role of defects in oxidized Si NCs.