Hello everyone, as someone who just moved to Madrid, the recent house-hunting process has been a real headache. I’ve seen many people on the forums asking the same question: is it legal to rent a single room while working? This is especially concerning when many places are sublet by a main tenant (a sublessor) who can’t provide a formal contract, which can feel unsettling. Today, I want to share what I’ve learned from my own research and consultations with a lawyer friend.
First of all, the short answer is: Yes, it’s legal
!
In Spain, whether you’re a student or a working professional, renting a room is completely legal. This arrangement is known as “alquiler de habitación.” Spanish law does not prohibit this form of rental. The key issue isn’t whether you’re renting an entire apartment or a single room, but whether you have a valid and legal agreement with the landlord and whether your residency and work status are legal. As long as you have a legal residency permit, you have the right to rent a place to live in Spain.

Key Issues: Contracts and Sublessors
The main concern for many people is dealing with a sublessor. Renting from a sublessor (the main tenant who is subletting the room)
does carry a higher risk than renting directly from the property owner. However, it’s a viable option if handled correctly. You need to confirm the following points:
- Does the sublessor have the right to sublet? This is the most crucial part of any Spanish rental agreement! You must ask the sublessor to show you their original rental contract with the main landlord. Carefully check if there is a clause that explicitly permits or prohibits subletting. If the contract forbids it, do not rent the room under any circumstances, as the property owner could evict both of you at any time.
- Sign a written agreement: Even if you’re only renting one room, it is highly recommended that you sign a written agreement. This document should clearly state the rent, lease term, security deposit, how utilities (water, electricity, internet) will be shared, and the rights and obligations of both parties. This not only protects you but is also a crucial document for registering your address (empadronamiento).
Rental Types Compared
To make it clearer, I’ve created a simple table comparing renting directly from the property owner versus subletting from a main tenant:
| Feature | Directly from Owner | Subletting from Tenant |
| Contract Type | Contrato de Arrendamiento | Contrato de Subarriendo |
| Legal Protection | Fully protected by the Urban Leasing Law (LAU) | Primarily governed by the Civil Code, weaker protection |
| Risk | Lower, direct relationship | Higher, dependent on the sublessor’s contract with the owner |
| Address Registration (Empadronamiento) | Usually easier | Requires sublessor’s cooperation; the original contract may be needed for subletting in Spain. |
| Flexibility | Lower, typically annual contracts | Higher, flexible lease terms |
Renting a room while working in Spain is a very common practice. The core requirements are to have a legal residency status and to protect your rights by signing a written agreement. When dealing with a sublessor, be extra cautious and always confirm they have the right to sublet. I hope this information helps those of you currently looking for a place. Feel free to share your own rental experiences in the discussion below!