The game ends when either you or your opponent destroys the 2 towers, or when either player has no health remaining.