Preheat the oven to 200C (180C fan) and grease a medium baking dish.
Boil the pasta in salted water for 2 minutes less than the packet says, then drain. It will finish cooking in the oven.
Heat the oil in a saucepan and fry the onion for 5 minutes until soft. Add the garlic and cook for 1 more minute.
Stir in the chopped tomatoes, dried herbs, water, salt and pepper. Simmer for 5 minutes until slightly thickened.
Combine the pasta and tomato sauce in the baking dish, then scatter the grated cheese evenly over the top.
Bake for 20 to 25 minutes until the cheese is golden and bubbling and the pasta is tender.
Let it stand for 5 minutes before serving - it will be very hot straight from the oven.