Astronomers use the transit method to detect exoplanets by observing the dimming of a star's light as a planet passes in front of it. This method allows astronomers to determine the size and orbit of the planet based on the amount of starlight blocked and the frequency of transits. The repeated patterns of dimming provide strong evidence for the existence of planets surrounding those stars.