Preheat the oven to 400 degrees and line a baking sheet with parchment paper.
Dip each eggplant slice into the beaten eggs, then coat it evenly with breadcrumbs. Place the slices on the prepared baking sheet.
Drizzle the olive oil over the coated eggplant slices and season lightly with salt and pepper. Bake for 20 minutes, flipping halfway through, until the coating turns golden.
Spread 1 cup of marinara sauce in the bottom of a baking dish. Arrange half the baked eggplant slices on top, then spoon more sauce over them and sprinkle with half the mozzarella and Parmesan.
Repeat the layers with the remaining eggplant, sauce, and cheeses. Bake for 15 minutes until the cheese melts and bubbles.
While the eggplant bakes, cook the spaghetti in a large pot of salted boiling water according to package directions. Drain the pasta.
Divide the spaghetti among four plates, top each with eggplant parmesan slices, and garnish with fresh basil leaves.