In 2018, the U.S. Supreme Court struck down the federal ban on sports gambling. This court ruling allowed each state to decide whether they wanted to legalize it.
Though there have been efforts to pass laws in recent years, online sports betting is still illegal in Texas.