F1 Explained: What is a red flag?

Formula 1 uses a variety of flags to communicate with drivers throughout a grand prix weekend, and red is one of the most important of all.