Wifi allows you to trade Pokemon with anyone over the internet, and to battle anyone over the internet whose friend code you have. All you need is wireless internet, or a special DS attachment that will hook up to an internet cable. You go to the Pokemon diamond/peal title screen, and go to Nintendo WFC Settings. You can then set up the internet connection, enabling you to trade and battle with people from all over the world.