First, preheat your oven to 375°F (190°C). Bring a large pot of salted water to a boil and cook the jumbo pasta shells according to the package directions until they are al dente. Once cooked, drain the shells and set them aside to cool slightly.
While the pasta is cooking, heat the olive oil in a large skillet over medium-high heat. Add the minced garlic and cook for about one minute until it becomes fragrant and starts to lightly brown. Add the chopped spinach to the skillet and stir occasionally until it wilts but remains bright green, which should take about 3-4 minutes.
In a large mixing bowl, combine the ricotta, shredded mozzarella, grated Parmesan, egg, chopped basil, salt, and pepper. Once the spinach has cooled down enough to handle, squeeze out any excess moisture and add it to the cheese mixture. Stir everything together until it is thoroughly combined.
Spread about ½ cup of the marinara sauce evenly over the bottom of your 8x8-inch baking dish. Using a small spoon, carefully stuff each cooked pasta shell with a generous amount of the spinach and ricotta filling. Arrange the stuffed shells in a single layer in the prepared baking dish.
Pour the remaining cup of marinara sauce over the top of the stuffed shells. Cover the baking dish with aluminum foil and bake for 25 minutes. After 25 minutes, remove the foil and continue baking for another 10-15 minutes, or until the sauce is bubbling and the cheese on top begins to turn golden brown.