A Texas man who sent harassing online messages to basketball superstar Caitlin Clark has been sentenced to serve 2.5 years in prison.

Michael Lewis, 55, was arrested in January in Indianapolis, only one mile away from where Clark's team, the Indiana Fever, play their matches.

Authorities said that Lewis sent hundreds of threatening and sexually explicit messages to Clark over the course of a month. Clark told police she had to alter her appearance in public due to her fear of the threats.

Lewis denied to police that the posts were threatening, saying that he was writing them for "just the same reason everybody makes posts". He also told police that he had "an imaginary relationship" with Clark.

During a contentious court hearing on Monday, Lewis told the judge that he wanted Clark to "be safe", aimed to point out holes in her security and claimed he had "never threatened her, I've never thought about threatening her".