Afterall and after all

Afterall isn’t a word.  After all is two words.  The latter is correct, the former is not.