Evolution and composition of baryonic matter is influenced by the evolution of other forms of matter and energy in the universe. At the time of primordial nucleosynthesis the universal expansion and thus the decrease of the density and temperature of baryonic matter were controlled by leptons and photons. Non-baryonic dark matter initiated the formation of clusters and galaxies, and to this day, dark matter largely determines the dynamics and geometries of these baryonic structures and indirectly influences their chemical evolution. Chemical analyses and isotopic abundance measurements in the solar system established the composition in the protosolar cloud (PSC). The abundances of nuclear species in the PSC led to the discovery of the magic numbers and the nuclear shell model, and they allowed the identification of nucleosynthetic sites and processes. To this day, we know the abundances of the ∼300 stable and long-lived nuclides infinitely better in the PSC than in any other sample of matter in the universe. Thus, we know the exact composition of a Galactic sample of intermediate age, allowing us to check on theories of Galactic evolution before and after the formation of the solar system. This paper specifically discusses the nucleosynthesis in the early universe and the Galactic evolution during the last 5 Gyr.