The Buffalo Bills have traded cornerback Kaiir Elam and a 2025 sixth-round pick to the Dallas Cowboys in exchange for a 2025 fifth-round pick and 2026 seventh-round pick, the team announced Wednesday.

The 23-year-old Elam, who was drafted 23rd overall three years ago, struggled to establish a regular role in Buffalo. He started six games as a rookie and was overtaken on the depth chart by fellow rookie Christian Benford, a sixth-round pick.

A nagging injury limited Elam to three games in 2023. His playing time dwindled even when healthy last year, with four starts in 13 appearances while being a healthy scratch four times.

Elam’s struggles became even more apparent in 32-29 loss to Kansas City in the AFC championship game when Benford was sidelined early by a concussion. Elam was burned several times by Patrick Mahomes and company.

Elam had no interceptions and six pass breakups in 12 starts over 29 games with the Bills.

The Associated Press contributed to this report.