Broche Vintage Esmalte Bar/Bandera Nacional de España/Coleccionable/Recuerdo?/¿Yates?
Or could be a tourist item/souvenir?. When I researched why it had the crown the closest I could find was that it was a sailing flag/ensign used on Spanish recreational vessels 1875-1931?. Unsure if this is its only use.