Newton also explained the tides of the ocean.Thus, the law of gravity applies everywhere in the universe.