Legal analysis: 1. peer-to-peer lending is a kind of private lending, which is legal.
2. peer-to-peer lending is just a form of private lending, that is, private lending concludes a loan contract in the form of a network contract, and fulfills the contractual obligations of providing loans and repaying principal and interest through the network.
Legal basis: Provisions of the Supreme People's Court on Several Issues Concerning the Application of Laws in the Trial of Private Lending Cases Article 22 Lenders and borrowers form a lending relationship through an online lending platform. The provider of the online lending platform only provides media services, and the people's court does not support it if the parties request it to assume the guarantee responsibility. The people's court shall support the online loan platform provider who expressly provides a guarantee for the loan through web pages, advertisements or other media or has other evidence to prove that the lender requests the online loan platform provider to assume the guarantee responsibility.