In basketball, a turnover occurs when a team loses possession of the ball to the opposing team before a player takes a shot at their team's basket.