Lease agreements usually require tenants to seek permission from the landlord to sublet the premises. If you sublet without consent, then you’d be breaching the contract, which means the landlord has grounds to terminate your lease altogether.
To avoid these issues, always seek consent from landlords before subletting a property. Depending on your local tenancy laws, a landlord needs a good reason to deny your subletting request.