It allows councils to extend an introductory tenancy beyond the usual 12-month period, and toughens up measures included in last year's draft bill after pressure from local government.
Councils will be able to refuse secure tenants a mutual exchange application if successful court action has been taken against them, or a member of their household, for anti-social behaviour.
And the legislation will prevent tenants completing a right-to-buy purchase where the council is seeking a possession or demotion order for anti-social behaviour.
It includes allowing councils to bring in a licensing scheme for private landlords, targeted at improving communities suffering problems in the private rented sector caused by low housing demand or anti-social behaviour.
There is a mandatory licensing scheme for larger houses in multiple occupation.
The scheme also covers smaller ones where councils have particular problems, for example where there are a large number of student properties in a small area.