Sauté onion and garlic until softened, then add chicken, beans, corn, and spices, cooking until evenly combined and heated through.
Preheat the oven to 180°C and prepare a greased baking dish with a thin layer of enchilada sauce at the bottom.
Layer tortillas, chicken mixture, sauce, and cheese evenly, ensuring each layer is balanced.
Repeat layers until all ingredients are used, finishing with a cheese layer on top.
Bake until the cheese is melted and bubbly, then allow the casserole to rest before serving.