Preheat oven to 350˚F.
Cook ravioli per package instructions to al dente. This may be a minute or two less than directed. Once done, drain and set aside.
In a large skillet, cook the onion with the olive oil over medium-low heat, stirring regularly until they start to caramelize, about 6-8 minutes.
Stir in the garlic, then add the spinach and cook, stirring regularly, just until the spinach starts to wilt, about 3-4 minutes. Remove from heat.
To assemble the casserole, spread about ½ cup of marinara in the bottom of a 2 quart casserole dish. Add about half of the ravioli, top with half of the marinara, half of the spinach mixture, and half of the mozzarella cheese. Repeat for a second layer.
Bake for 20-30 minutes or until the cheese is melted and the sides start to bubble.
