UX focuses on the overall user experience, while UI refers to the layout, look, and interactive elements of a user interface.