Sauté onions and garlic in oil, add minced meat and fry until nicely browned. Add tomatoes, tomato paste and wine, stir. Season with salt, pepper, oregano, chili powder and basil (oregano should slightly dominate).
Stir in the diced ham and let everything simmer for 3 hours on low heat.