In the early 17th century, German astronomer Johannes Keplerpostulated three laws of planetary motion. His laws were based on the work of his forebears—in particular, Nicolaus Copernicusand Tycho Brahe. Copernicus had put forth the theory that the planets travel in a circular path around the Sun. This heliocentric theory had the advantage of being much simpler than the previous theory, which held that the planets revolve around Earth. However, Kepler’s employer, Tycho, had taken very accurate observations of the planets and found that Copernicus’s theory was not quite right in explaining the planets’ motions. After Tycho died in 1601, Kepler inherited his observations. Several years later, he devised his three laws.

Planets move in elliptical orbits.
An ellipse is a flattened circle. The degree of flatness of an ellipse is measured by a parameter called eccentricity. An ellipse with an eccentricity of 0 is just a circle. As the eccentricity increases toward 1, the ellipse gets flatter and flatter. A major problem with Copernicus’s theory was that he described the motion of the planet Mars as having a circular orbit. In actuality, Mars has one of the most eccentric orbits of any planet, with an eccentricity of 0.0935. (Earth’s orbit is quite circular, with an eccentricity of only 0.0167.) Since planets orbit in ellipses, that means they aren’t always the same distance from the Sun, as they would be in circular orbits. Since a planet’s distance from the Sun changes as it moves in its orbit, this leads to…

A planet in its orbit sweeps out equal areas in equal times.
Consider the distance that a planet travels over a month, for example, during which it is closest to and farthest from the Sun. One can in a diagram form a roughly triangular shape with the Sun as one point of the triangle and the planet at the beginning and end of the month as the other two points of the triangle. When the planet is close to the Sun, the two sides that have the Sun as the vertex will be shorter than those same sides of the triangle when the planet is far from the Sun. However, both of these triangular shapes will have the same area. This happens because of the conservation of angular momentum. When the planet is closer to the Sun, it moves faster than when it is farther from the Sun, so it travels a greater distance in the same amount of time. Therefore, the side of the triangle connecting the two positions of the planet when it is closer to the Sun is longer than it is when the planet is farther from the Sun. Despite the distance to the Sun being shorter, the fact that the planet travels a longer distance in its orbit means that the two triangles are equal in area.

T^{2} is proportional to a^{3}.
The third law is a little different from the other two in that it is a mathematical formula, T^{2} is proportional to a^{3}, which relates the distances of the planets from the Sun to their orbital periods (the time it takes to make one orbit around the Sun). T is the orbital period of the planet. The variable a is the semimajor axis of the planet’s orbit. The major axis of a planet’s orbit is the distance across the long axis of the elliptical orbit. The semimajor axis is half of that. When dealing with our solar system, a is usually expressed in terms of astronomical units (equal to the semimajor axis of Earth’s orbit), and T is usually expressed in years. For Earth, that means a^{3}/T^{2} is equal to 1. For Mercury, the closest planet to the Sun, its orbital distance, a, is equal to 0.387 astronomical unit, and its period, T, is 88 days, or 0.241 year. For that planet, a^{3}/T^{2} is equal to 0.058/0.058, or 1, the same as Earth.
Kepler proposed the first two laws in 1609 and the third in 1619, but it was not until the 1680s that Isaac Newton explained why planets follow these laws. Newton showed that Kepler’s laws were a consequence of both his laws of motion and his law of gravitation.
https://www.britannica.com/story/understandingkeplerslawsofplanetarymotion