Abstract: In the framework of gravitational theory of general relativity, this article has systematically and radically solved the problem of galaxy formation and some significant cosmological puzzles. A flaw with Einsteins equation of gravitational field is firstly corrected and the foundations of general relativity are perfected and developed and space-time is proved to be infinite, expansion and contraction of universe are proved to be in circles, the singular point of big bang is naturally eliminated, celestial bodies and galaxies are proved growing up with cosmic expansion, for example Earths mass and radius at present increase by 1.2 trillion tons and 0.45 mm, respectively in a year, in response to which geostationary satellites rise by 2.7 mm.