Preheat oven to 350 degrees Fahrenheit
Cook and drain spaghetti.
Stir in margarine, parmesan cheese and eggs, while spaghetti is hot.
Form spaghetti mixture into a crust in a 10 inch pie plate.
Finely mince garlic.
In a skillet cook the beef, onion, and garlic. Add salt and pepper for flavor. Drain off the fat.
Stir in the undrained tomatoes, tomato paste, sugar and oregano. Heat through.
Spread ricotta cheese over the spaghetti crust.
Pour in the beef and tomato mixture.
Sprinkle mozzarella cheese over the top of the pie then bake for 5-7 minutes longer, until cheese melts.
Bake at 350 degrees Fahrenheit for 20 minutes.
Once cheese is melted, serve and enjoy!