Heat olive oil in a large skillet over medium heat. Add the chopped onions and minced garlic. Sauté until the onions become translucent.
Add the ground beef to the skillet, breaking it apart with your spatula, and cook until it is no longer pink. Stir in the enchilada sauce, chopped green chiles, and black beans.
Let the mixture simmer for about five minutes until the flavors meld together perfectly. Season with salt and pepper to your liking.
Preheat your oven to 350°F (175°C). In a baking dish, spread a spoonful of the beef mixture to cover the bottom. Layer four corn tortillas, followed by half of the beef mixture and one cup of shredded cheddar cheese. Repeat the layers, ending with cheese on top.
Place the baking dish in the preheated oven and bake for 20-25 minutes until the cheese is bubbly and golden brown. Let sit for five minutes before serving.
Notes
Extra toppings like fresh cilantro or sour cream elevate this dish. For storing, keep it in an airtight container in the fridge for up to three days.