Afterwards is an adverb. He went to the party, and afterwards he came home.
(I believe After works as an adverb too in AmE, and this usage is infiltrating BE as well. You'll want to hear some US views about that.)
- For Teachers