Covering the dish with foil or a lid helps to trap moisture and heat, ensuring that the enchiladas cook evenly and remain moist. During the last 30 minutes, you can remove the cover to allow the cheese on top to melt and develop a golden, bubbly crust.