The Matthew Shepard and James Byrd Jr. Hate Crimes Prevention Act is a federal law enacted in 2009 that expands hate crime legislation to include those motivated by a victim's sexual orientation, gender identity, or disability. This act emerged as a response to the brutal murders of Matthew Shepard, a gay college student, and James Byrd Jr., an African American man, highlighting the need for stronger protections against hate-motivated violence in the United States.