well, my portuguese pride obliges me to say that portugal was first born than spain... so, portugal got its indepence for the kingdom of Castilla, which later united with other Iberian kingdoms and formed modern Spain.