Ray Allen and his wife, Shannon, have been married since 2008. (Michael Loccisano/Getty Images for New York Fashion Week: The Shows)

Ray Allen said in a court filing Tuesday that he was the victim of “catfishing” by a man who posed online as several different women. In an emergency motion, Allen was responding to a claim made by the man, Bryant Coleman, that he was being stalked by the 10-time NBA all-star.

“Ray wants nothing to do with [Coleman] and merely wants to be left alone,” the motion reportedly stated.

According to the filing (via the Associated Press), “Coleman pretended to be a number of attractive women interested” in Allen. The alleged plan worked, as the two-time NBA champion “believed he was speaking with these women and communicated with them.”

An attorney for Allen, David Oscar Markus, claimed that Coleman’s intention was to extort Allen by threatening to leak private information. The filing stated that the two men came to a confidentiality agreement, which Coleman subsequently violated, and that he has used social-media accounts to continue to harass Allen and his family.

Coleman “posted about Ray’s wife, Ray’s children, Ray’s dog, Ray’s homes, Ray’s wife’s restaurant, and numerous other personal items,” read the motion. “Coleman not only posted about these things, he would actually post while physically located inside Ray’s wife’s restaurant in Orlando. And he would make sure they knew it, tagging Ray and his wife on those posts.”

Allen has been married to his wife, former singer/actress Shannon Walker Williams, since 2008, having first met in 1996, and they have five children. In 2016, she opened a restaurant in Orlando that features healthy, organic ingredients prepared in a fast-food style.

“The person who perpetrated this scheme has now started to stalk him and make threats against Ray and his family,” Markus said (via TMZ Sports). “Ray has taken legal action to put an end to the threats and to expose his manipulation and wrongdoing.”

Allen asked the Orange County, Fla., court to prevent Coleman from “cyber-stalking” him. The 42-year-old, who last played in the NBA in 2014, said that he met the “women” in “various online forums.”

Markus said that his client “regrets ever engaging with this person online and is thankful they never met in person.” He added, “This experience has negatively impacted Ray, and he hopes that others might use his mistake to learn the dangers of communicating online with strangers.”

Read more from The Post:

LaVar Ball says Lakers ‘don’t know how to coach’ his son Lonzo

The president attacked her son. So Marshawn Lynch’s mother fired back.

‘It’s just fun, man’: Kyrie Irving continues to justify the Celtics’ summer blockbuster

Dennis Smith Jr. represents both the present and future of the Dallas Mavericks