The z-test is a statistical hypothesis test that uses the standard normal distribution to determine if the mean of a population is equal to a specified value. It is commonly used when the population standard deviation is known or when the sample size is large enough to assume a normal distribution.