Preheat your oven to 350°F.
Heat the olive oil in a large skillet over medium heat.
Add the diced onion and ground beef.
Cook until the beef is browned and fully cooked through and the onions are softened.
Drain any excess grease from the skillet.
Stir in the salt and black pepper.
Add the baked beans to the skillet. Remove the bacon pieces that come inside the canned baked beans after adding them.
Mix everything together well.
Add the barbecue sauce, ketchup, and light corn syrup.
Stir until fully combined and evenly coated.
Transfer the baked bean mixture to a greased 9x13-inch baking dish.
Bake for 45 minutes, until hot, bubbly, and slightly caramelized around the edges.
Serve warm and enjoy!