You need at least one Max Pokémon and enough MP to enter Max Battles. From there, head to a Power Stop to team up with three other trainers for DMax Battles, or form a team of up to 40 people for GMax Raid Battles. Choose the best Pokemon to form your battle party, and beat the boss before everyone's Pokemon faint.