Pokemon can evolve by collecting a certain number of a specific species' candy. You can obtain candy by catching the same species of Pokemon, hatching Pokemon from eggs, or transferring them to Professor Willow.