How did the Universe change from a cloud of dust to a constellation of stellar bodies? This lecture describes how gravity was fundamental in crossing the second threshold of the course: the creation of stars and galaxies from huge clouds of hydrogen and helium atoms.