Even if your H1B visa or extension gets denied, you have a few options. Here are three ways that buying a house while on an H1B visa could work out for you in the long run:
#1 Rent your house in the US if your H1B visa gets denied. When this happens, you can rent out your house and avoid the hassle of selling it. This will allow you to keep living in the US even after leaving your home country or moving elsewhere.
#2 Sell your house on an H1B visa if you have to return to your home country or move elsewhere. If you decide to sell your house and leave for good, don't worry—you can still sell it! If someone buys it from you, they'll pay off the mortgage so that nothing defaults when you leave America behind.
#3 Allow your family or friends to live there as well.