Ferdinand was king of Aragon and Isabella was queen of Castille. when they got married they united their kingdoms into one country.They unified Spain through religion and courts. in 1492, and 1502, they issued an edict that everyone had to be catholic or leave. Jews and Muslims left. This left Spain weak because all their artists, merchants, bankers, doctors, and teachers had been either Jews or Muslims.