Right-click the unused area of the taskbar.
Make sure that the "Lock taskbar" checkbox is unchecked.
Click and hold the left mouse button on the unused area of the taskbar.
Drag the taskbar to the desired side of the screen.
Release the mouse.