Chop the onion and garlic.
Heat olive oil in a pan and sauté the garlic.
Add the ground beef and cook.
Add the onion and cook together.
Pour in the tomato sauce and bring to a boil.
Boil the spaghetti noodles.
Mix the cooked noodles with the sauce.
Serve on a plate and sprinkle with Parmesan cheese.