Following a three-year long legal battle, a Washington, D.C. judge banned a man from smoking medical marijuana in his home after his neighbor filed a lawsuit claiming the smell drifted into her home and made her sick.

Judge Ebony Scott ruled this week that although Thomas Cackett has a license to purchase medical marijuana “he does not possess a license to disrupt the full use and enjoyment of one’s land, nor does his license usurp this long established right.”

According to court documents, Josefa Ippolito-Shepherd sued Cackett, who lives in the ground level apartment in an adjacent duplex, and her neighbor Angella Farserotu, who owns the duplex, in 2020. Ippolito-Shepherd alleged in her complaint that Cackett “‘smokes marijuana 24/7’ and that the ‘foul and pungent odor enters and permeates (her) home, making her violently sick …'”

The case was dismissed in 2021 when a judge found Ippolito-Shepherd “failed to state a claim on the sole ground that smoking marijuana in one’s home is legal in the District of Columbia and therefore cannot constitute an actionable nuisance.” But a court of appeals reversed that dismissal, and the case was reopened last year.

Biden pardons marijuana users:Here’s where marijuana laws stand in each state

Ippolito-Shepherd, a public health scientist, then testified in D.C. Superior Court that she experienced health issues including severe headaches, nausea, vomiting and respiratory issues within minutes each time Cackett smoked. Ippolito-Shepherd told USA TODAY she complained about the smell in 2018 and 2019 to Cackett and Farserotu, who acknowledged her tenant had been smoking marijuana.

“So the battle begun,” Ippolito-Shepherd said.