Gather the ingredients. Preheat the oven to 350 degrees F (175 degrees C). Coat a 9x13-inch baking dish with cooking spray.
2
Heat a large skillet over medium-high heat. Add beef and onion; cook and stir until beef is completely browned, 5 to 7 minutes. Drain and discard grease.
3
Stir tomato sauce, black beans, diced tomatoes, corn, and chopped green chiles into ground beef mixture; season with chili powder, cumin, garlic, oregano, and pepper flakes. Reduce heat to low; simmer for 5 minutes.