Preheat oven to 350 degrees and grease a 9 x 13 baking pan.
Dice and onion and finely chop 2 cloves garlic.
Boil pasta according to package directions.
While boiling pasta, cook onion in a small skillet with olive oil until translucent.
Add garlic and cook another 2 minutes, season with a pinch of salt and a dash of pepper.
In a small bowl mix the egg, ricotta cheese and 1 cup of Parmesan cheese.
Drain the cooked pasta and stir in the ricotta mixture.
Add the cooked onion and garlic, and the pasta sauce.
Add 1½ cups of the shredded mozzerella cheese.
Mix until well combined.
Pour into baking dish and top with remaining mozzerella cheese and then parmesan cheese. Bake at 350 for 30-35 minutes or until cheese bubbles and starts to brown.
You can also make the ziti in two 9 x 9 pans and freeze one for later!
Recipe by Amish 365 at https://www.amish365.com/rachels-baked-ziti/