Prepare a grill for medium-high heat. Grill corn, turning occasionally, until well charred, 10–12 minutes. Cut kernels from cobs and place in a large bowl.
Grill chiles, turning occasionally, until skins are blackened, 12–15 minutes. Transfer chiles to a small bowl, cover with plastic wrap, and let steam 15 minutes.