Start by bringing a large pot of salted water to a boil. Add the uncooked ziti pasta and cook according to package instructions until al dente. Drain and set aside.
In a large mixing bowl, combine the cooked ziti, basil pesto, and peas. Stir gently to ensure the pasta is well-coated with the pesto.
Preheat your oven to 350°F (175°C). In a 9x13-inch baking dish, spread half of the pasta mixture evenly. Sprinkle one cup of mozzarella cheese over this layer.
Top the cheese with the remaining pasta mixture, spreading it out evenly. Finally, sprinkle the remaining mozzarella cheese on top for that delicious cheesy crust.
Place the baking dish in the preheated oven and bake for about 25-30 minutes, or until the cheese is bubbly and golden brown.
Once baked, remove the dish from the oven and let it cool for a few minutes before serving. This helps the layers set and makes serving easier.