Federal prosecutors announced charges Monday against the man who allegedly attacked Paul Pelosi, the husband of House Speaker Nancy Pelosi.

The U.S. attorney's office for the Northern District of California charged David Wayne DePape, 42, with one count of "attempted kidnapping of a U.S. official." An FBI affidavit said that DePape had told police he planned to hold Nancy Pelosi hostage.

Court documents showed that the attacker had brought duct tape, white rope, zip ties, two hammers and a journal in the attack Friday on Paul Pelosi. The attacker also reportedly yelled, "Where is Nancy?"

DePape was also charged with one count of assault on an immediate family member of a U.S. official with the intent to retaliate against the official over the performance of their duties.

The attacker could face 50 years in prison. The assault charge carries a maximum prison sentence of 30 years. The maximum sentence for kidnapping is 20 years in prison.

Police say the attacker broke a glass door to enter the home, waking Paul Pelosi, who confronted him before going to the bathroom to call 911.

First responders arrived eight minutes later at 2:27 a.m to find Paul Pelosi struggling under a hammer wielded by the attacker.

Paul Pelosi, 82, was taken to a hospital and underwent surgery to repair a fractured skull and several arm and hand injuries. He is expected to make a full recovery according to Drew Hammill, a spokesperson for Nancy Pelosi.

Law enforcement searched DePape's residence, which is a garage in Richmond, California. According to the criminal complaint filed by prosecutors, authorities found a sword, two hammers, and a pair of rubber and cloth gloves in the garage.

DePape's online presence has also caused concern. A report Sunday by the Washington Post found that DePape published hundreds of blog posts in recent months filled with gory drawings and references to Jews, Black people, Democrats, the media and transgender people. He reportedly embraced election falsehoods and political conspiracy theories such as QAnon.

DePape's former partner confirmed the posts and told San Francisco's ABC affiliate that DePape has "been mentally ill for a long time."

The attack comes during the final stages of the Jan. 6 committee investigation and days before the Nov. 8 midterm elections, which could determine which party controls Congress in the upcoming legislative session.