Complex sentence: In the late 20th century, most legal immigrants were males, but by the early 21st century, women accounted for nearly one-third of all legal immigrants.
Split into simpler sentences: In the late 20th century, most legal immigrants were males. By the early 21st century women accounted for nearly one-third of all legal immigrants.