A defendant has a right to confront witnesses who testify against them at a trial, through cross-examination.