Dice the eggplant, place them in a colander and spatter them with a teaspoon of salt.
Heat a tablespoon of olive oil in a large pan and brown the garlic. Remove it and add the eggplant.
Cover and cook, medium heat and stirring every now and then, until the eggplant are well cooked - no white parts - and a little crust forms on the surface.
Bring a big pot of salted water - about 8 cups and two teaspoons of salt - to a boil. Toss in the pasta and cook it according to package directions.
Cut a few leaves of basil with your hands and sprinkle the tomatoes. Toss in the eggplant and mix, turn off the heat, cover, and set aside.
Drain the pasta and add it to the pan. Mix well and sauté a minute or so, high heat.