The ratio test is used to determine whether an infinite series converges or diverges by examining the limit of the ratio between consecutive terms. If this limit is less than 1, then the series converges; if it's greater than 1, then it diverges; and if it's equal to 1, further tests are needed.