A panel in a vehicle's roof designed to let either sun or air (or both) into the cabin. Traditionally, a sunroof was an opaque panel that was removed or slid back to allow the sun to shine directly into the vehicle. This is in contrast to a moonroof, which was transparent and designed simply to allow light into the car.

However, these two applications are often combined, and it is not uncommon to see a glass roof that can retract fully like a traditional sun roof, remain closed like a traditional moon roof, or tilt to allow for airflow. They may be designed to operate either manually or electrically. Modern cars often include a sliding shade that matches the roof upholstery and provides a way of hiding the sunroof behind it.

Having the sunroof open reduces a vehicle's aerodynamic efficiency and increase its fuel consumption.