The Matthew Shepard and James Byrd, Jr. Hate Crimes Prevention Act is a federal law enacted in 2009 that expands the definition of hate crimes to include those motivated by the victim's sexual orientation, gender identity, or disability. This legislation was a response to the brutal murders of Matthew Shepard, a gay college student, and James Byrd, Jr., an African American man, emphasizing the need for stronger protections against hate crimes based on sexual orientation and gender identity.