To export a transparent background in After Effects, ensure your composition is set to the correct format. Go to "Composition" > "Add to Render Queue", then in the Render Queue settings, set the Output Module to "QuickTime" and select "Animation" with the "RGB + Alpha" option. This preserves transparency for your project, making it perfect for overlaying in other applications.