Two-way ANOVA is used to determine if there are any differences between the means of at least two (but usually three or more) independent groups based on two categorical independent variables.
It’s a test for equality of means but it uses variances under the hood to make this determination.
ANOVA is an omnibus test. If the test is significant, we know that at least one group is different from the others, but NOT which groups are different.