The principle of habitable planets creation of near stars in our galaxy was developed. It was shown that the Earth and the Moon formed as a result of thermal nuclear explosion (TNE) after a collision with a small comet. The comet has broken through the proto-Earth crust, and created conditions for liquid-drop division into the Earth and the Moon. It is shown that the comet impact on the proto-Earth led to formation of continents as well as to formation of the Moon, seas, oceans and atmosphere and to creation of conditions for life origin. The analysis of kimberlitic pipes distribution, as markers of comet fragments motion under a crust, shows that the comet has broken up under crust with formation of many gas bubbles. An analysis of the Martian topography revealed that the comet hit Mars not under a glancing angle. As a result, the products of TNE remained under the Marian crust. The track of the comet movement under the Venus crust was also established. It is shown that the planet surface near comet track is spotted by numerous cracks.