Ramiro I
It was incorporated in 1044 by Ramiro I into the Kingdom of Aragon.