Locking the taskbar ensures that any changes you make to it remain permanent. When the taskbar is locked, it cannot be resized or moved.