Sotomayor graduated from Cardinal Spellman High School in the Bronx. She earned her A.B. from Princeton University, graduating summa cum laude in 1976. Sotomayor obtained her J.D. from Yale Law School in 1979, where she was an editor of the Yale Law Journal. Sotomayor then served as an Assistant District Attorney under prominent New York County District Attorney Robert Morgenthau, prosecuting robberies, assaults, murders, police brutality, and child pornography cases. In 1984, she entered private practice, making partner at the commercial litigation firm of Pavia & Harcourt, where she specialized in intellectual property litigation.