Preheat your oven to 350°F (175°C). Spray a casserole dish with nonstick spray and set it aside so everything is ready to assemble later.
Remove the sausage from its casing and crumble it into a hot skillet. Cook until browned, then drain the extra grease, leaving a little behind to add flavor to the sauce.
In the same pan, add the chopped onion and garlic. Cook over medium heat until softened and fragrant, which builds the flavor base of the sauce.
Add the diced tomatoes, basil, oregano, salt, and pepper. Stir everything together and let it simmer. Add the sausage back in, then cover and simmer for 20–30 minutes so the flavors develop deeply.
Boil the penne in salted water until al dente. Drain the pasta and return it to the pot so it’s ready for mixing with the sauce.
Add the sausage sauce and half the mozzarella to the pasta. Toss until the cheese melts slightly. Layer half in the casserole dish, sprinkle cheese, then add the remaining pasta mixture and top with the rest of the mozzarella.
Cover with foil and bake for 30 minutes. Then uncover and bake another 10–15 minutes until the cheese is golden, bubbly, and irresistible.