To participate in PVP battles in Pokemon Go, you need to have a Battle Pass. You can get a Battle Pass by walking to a nearby gym and spinning the photo disc. Once you have a Battle Pass, you can challenge other trainers to battles.