In general there are renters rights and the lease contract survives a sale. When you buy a property you need to look at contracts in place and whether they are incompatible with your desired use.
As far as I am aware, if you are in an assured shorthold tenancy, as the majority of rented homes are in the UK, your new landlord can serve a court order under section 21 for a no-fault eviction.
On the other hand, if you are renting commercial property for a business and have negotiated a lease, then the lease contract holds.