A victory over the Muslims at the Battle of Ourique in 1139 is traditionally taken as the occasion when the County of Portugal as a fief of the Kingdom of León was transformed into the independent Kingdom of Portugal.