Pre-baking the pie crust (blind baking) before adding the custard filling helps prevent a soggy crust.