A t-test is a statistical hypothesis test in which the test statistic obeys a Student's t-distribution under the null hypothesis. It can be used to test whether two datasets are significantly different from each other.