You win the game by having the most Victory points (VPs). VPs are scored at the end of the game for your Terraform rating, from tiles on the map, from Milestones and Awards, and from many of the cards.