User Experience UX deals with the purpose and functionality of the product.
User Interface UI deals with the quality of the interaction that the end-user has with the product.