Sauté onions and bell peppers until softened.
Add black beans and corn; cook until heated through.
In a baking dish, layer corn tortillas, the bean mixture, enchilada sauce, and cheese.
Repeat layers, ending with cheese on top.
Bake until the casserole is bubbly and the cheese is melted.