Preheat your oven to 375°F (190°C).
Cook the penne pasta according to the package instructions. Drain and set aside.
In a large skillet, heat the olive oil over medium heat. Add the chopped onion and cook until softened, about 5 minutes. Add the minced garlic and cook for another minute.
Add the Italian sausage to the skillet, breaking it up with a spoon. Cook until browned and cooked through, about 8-10 minutes.
Stir in the marinara sauce, dried oregano, and dried basil. Let it simmer for a few minutes.
In a large mixing bowl, combine the cooked penne pasta, sausage mixture, ricotta cheese, and half of the shredded mozzarella cheese. Mix well.
Transfer the mixture to a baking dish. Top with the remaining mozzarella cheese and grated Parmesan cheese.
Bake in the preheated oven for 25-30 minutes, or until the cheese is melted and bubbly.
Let it cool for a few minutes before serving. Enjoy!