Sotalol belongs to a group of medications known as beta-blockers. This medication is used to control and prevent abnormal heartbeats from occurring.