Preheat the oven to 375°F.
Bring a large pot of salted water to a boil and cook the pasta shells according to package instructions until al dente, about 8-10 minutes.
Drain the pasta shells and set aside to cool.
In a large skillet, heat the olive oil over medium-high heat. Add the chopped onion and cook until translucent, about 3-4 minutes.
Add the garlic and cook for an additional minute.
Add the ground beef to the skillet, breaking it up with a spoon as it cooks, until browned, about 5-6 minutes.
Stir in the marinara sauce and bring to a simmer. Reduce heat to low and let sauce simmer while preparing the cheese filling.
In a large bowl, combine the ricotta cheese, mozzarella cheese, and parmesan cheese. Mix well to combine.
Stuff each pasta shell with the cheese mixture, placing them in a baking dish as you go.
Pour the meat sauce over the stuffed shells and cover with aluminum foil.
Bake for 25-30 minutes, then remove the foil and continue baking for an additional 10-15 minutes, or until the cheese is melted and bubbly.
Remove from the oven and let cool for a few minutes before serving. Garnish with chopped fresh basil leaves, if desired.