According to legend, in an act of bravery, Juan Escutia wrapped the Mexican national flag around his body and jumped from the top of the castle in order to keep it from falling into the enemy 's hands.