It definitely looks like Madrid but if it is Madrid it is missing a mark. It should also have the city shield/crest. Also, in my two references, none of the other marks are listed. If it is Madrid it would date from 1831, thus the numbers under the castle. I have limited hands-on experience with Spa...