A roof flap is an aerodynamic feature on race cars, mainly stock cars, which functions as an emergency spoiler to prevent the vehicle from lifting off the ground. The flaps are stowed during normal vehicle operation; however, in certain situations, e.g., if the vehicle goes into a spin, particularly if it is facing backwards, the flaps deploy to disrupt the air flow over the roof and reduce the lift force on the vehicle.
NASCAR racecar's roof flap
A spoiler is an automotive aerodynamic device whose intended design function is to 'spoil' unfavorable air movement across the body of a vehicle in motion, usually manifested as lift, turbulence, or drag. Spoilers on the front of a vehicle are often called air dams. Spoilers are often fitted to race and high-performance sports cars, although they have become common on passenger vehicles as well. Spoilers are added to cars primarily for styling purposes and either have little aerodynamic benefit or even worsen the aerodynamics.
The Plymouth Superbird is famous for its high factory rear wing.
1987 Audi Sport Quattro S1 with special racing wings and the Pikes Peak International Hill Climb livery, in the Goodwood Festival of Speed
Retractable spoiler on a Chrysler Crossfire
Toyota MR2 with a factory-installed rear spoiler