In basketball, the position that most resembles the sweeper in soccer is the point guard.
The reason for this comparison is that the sweeper in soccer typically plays a defensive role, often positioned behind the defenders to clear the ball and provide support during defensive situations. The point guard in basketball also has a pivotal role in directing the team's defense and offense, often being responsible for facilitating plays and managing the game's tempo. Like a sweeper, the point guard needs to have a good understanding of the game, anticipate plays, and help ensure defensive integrity while also initiating offensive strategies.