The origin of the current flag of Spain is the naval ensign of 1785, Pabellón de la Marina de Guerra under Charles III of Spain. It was chosen by Charles III himself among 12 different flags designed by Antonio Valdés y Bazán (all proposed flags were presented in a drawing which is in the Naval Museum of Madrid). The flag remained marine-focused for much of the next 50 years, flying over coastal fortresses, marine barracks and other naval property. During the Peninsular War the flag could also be found on marine regiments fighting inland. Not until 1820 was the first Spanish land unit (The La Princesa Regiment) provided with one and it was not until 1843 that Queen Isabella II of Spain made the flag official.
Spanish flag outline, In fact it amuses parents when they see their child's performance.