Preheat the oven to 375°F (190°C).
Prepare the eggplant by slicing it into 1/2-inch rounds and salting them.
Set up a breading station with flour, beaten eggs, and breadcrumbs in three separate bowls.
Dredge each eggplant slice in flour, then dip it in beaten eggs, and finally coat with breadcrumbs.
Heat olive oil in a large skillet over medium-high heat and fry the eggplant slices until golden brown.
Place a layer of marinara sauce at the bottom of a baking dish, followed by a layer of fried eggplant.
Sprinkle a layer of mozzarella and Parmesan cheese over the eggplant slices, then repeat the layering process.
End with a top layer of marinara sauce, mozzarella, and Parmesan.
Cover the dish with foil and bake for 25 minutes, then remove the foil and bake for an additional 15 minutes until golden and bubbly.
Let the dish rest for about 10 minutes before serving, garnished with fresh basil if desired.