Customers play a very important role in each enterprise about production and business. Especially in ecommerce, customers and enterprises don't directly contact with each other but only through communication networks. Moreover, loyalty of customers is a very important vital determining the survival of businesses. Therefore, all businesses are looking for new ways to build loyalty for businesses to retain and attract new customers. However, the research of finding out and assessing the customer loyalty in e-commerce is limited. Therefore, the author proposes the solutions for building customer loyalty on the basis of implementation of relationship marketing.