The Madrid flag is a crimson drape that shields the shield with the symbol of the city of Madrid. The bear represented in the image is due to the presence of these animals in the area in the past. The bush with the meadow below reminds of a dispute between citizenship and the city council, the ownership of the trees was assigned to the first as well as the possession of grassy ground to the second. Although hardly recognizable, the stars in the frame represent the Big Bear.
The symbol in the flag is reproduced in the statue of the Bear and Corbezzolo, located at the Puerta del Sol in Madrid.
wiki