A home warranty is not required by the law. But it may be required by your lender: that is, a lender can make it a term or condition of receiving a loan that you get a home warranty, the same way they can (and do) require homeowner's insurance. If you don't wish to get a home warranty when your lender wants one, you'd need to find a different lender.