Former New York City Mayor Rudy Giuliani has left the hospital following treatment for the coronavirus.

Giuliani was seen leaving Georgetown University Medical Center on Wednesday night and confirmed his discharge on social media Thursday morning.

Giuliani is leading President Donald Trump’s legal effort to overturn the election he lost to Joe Biden. He tested positive for COVID-19, just days after testifying in front of a Georgia state Senate subcommittee, Trump announced Sunday.

Giuliani was admitted Sunday to Georgetown University Medical Center in Washington, according to multiple media reports.

Giuliani was in Atlanta last Thursday for a hearing before state senators on a judiciary subcommittee at the Capitol. Videos show he did not wear a mask in the committee room, which was filled with elected officials, witnesses and journalists.

Giuliani also spoke to members of the media in the Georgia Capitol before the hearing.

He was in “close proximity to senators, Senate staff, members of the media and the general public,” state Sen. William Ligon, the chairman of the subcommittee, said in a statement Sunday evening.

Anyone who came into “close contact” with Giuliani should “take every precaution and follow all requisite guidelines to ensure their health and safety.”

At last Thursday’s hearing, Giuliani and other Trump attorneys brought a parade of witnesses who expressed doubts about the integrity of the election in Georgia, though there is no evidence of widespread voter fraud during the election.

Giuliani, 76, also attended an election hearing in Michigan last week.