How does archiving work?

I am using a single gmail account with Mailspring. When I click on “archive” on an item that is in a folder (tag) it does not disappear. I can’t tell what the archive button is supposed to do.