Miranda de Ebro
After the assassination of Sancho Garcés IV of Navarre, Vizcaya, Álava, La Rioja and the royal family, Alfonso VI of Castile and Leon was recognized as king. This event passed Miranda de Ebro into the hands of the Kingdom of Castile in 1076. To consolidate his power, Alfonso VI granted the "fuero" of Miranda de Ebro in 1099.