In a large pan, sauté the onion and garlic until soft.
Add the minced beef and cook until browned.
Stir in the canned tomatoes and season with salt and pepper.
Simmer for 20 minutes, stirring occasionally.
Cook the spaghetti according to package instructions.
Serve the sauce over the spaghetti and sprinkle with grated parmesan.