Unfortunately, you cannot benefit from a marriage to an H1B visa holder: to change your legal status in the U.S. you need to have a status; yours ended about 10 years ago. At this time, the law makes you ineligible for any status in the U.S. until you return to your country for 10 years. One exception from this rule can be granted if you marry a U.S. citizen. Other exceptions exist but they all require petitions by your U.S. citizen or permanent resident spouse, parent, or child, and are very difficult to obtain.
Answered on Nov 03rd, 2016 at 6:33 PM