The creation, coherent manipulation, and measurement of spins in nanostructures open up completely new possibilities for electronics and information processing, among them quantum computing and quantum communication. We review our theoretical proposal for using electron spins in quantum dots as quantum bits, explaining why this scheme satisfies all the essential requirements for quantum computing. We include a discussion of the recent measurements of surprisingly long spin coherence times in semiconductors. Quantum gate mechanisms in laterally and vertically tunnel-coupled quantum dots and methods for single-spin measurements are introduced. We discuss detection and transport of electronic EPR pairs in normal and superconducting systems.