In the 19th century, Philippine ports opened to world trade and shifts started occurring within Filipino society. The Latin American wars of independence and renewed immigration led to shifts in social identity, with the term ''Filipino'' shifting from referring to Spaniards born in the Philippines to a term encompassing all people in the archipelago. This identity shift was driven by wealthy families of mixed ancestry, to which it became a national identity.