Legal analysis: A contract must be signed for shared housing. Renting a house requires signing a rental agreement, also known as a house lease contract, which refers to an agreement in which the lessor provides the house to the lessee for use, the lessee pays the agreed rent on a regular basis, and returns the house to the lessor in good condition when the contract is terminated. The content of the rental agreement mainly includes some rights and obligations of the lessor and the lessee, including the use time and price of the house that the lessor needs to provide to the lessee and the equipment of the house facilities, etc. It also includes the use of the lessor's house by the lessee, Some rights and obligations regarding protection, deadlines, etc.
Legal basis: Article 703 of the "People's Republic of China and Civil Code" A lease contract is a contract in which the lessor delivers the leased property to the lessee for use and income, and the lessee pays rent.