iPhone does not come with an in-built archive feature. You can use a backup feature, hide alerts feature, and third-party apps to archive your messages.