The man who attacked the husband of former US House of Representatives Speaker Nancy Pelosi has been sentenced to 30 years in prison.

David DePape was convicted of assault and attempted kidnapping of a federal official in November after a week-long trial in San Francisco.

The attack left Paul Pelosi, now 84, in hospital for six days with a fractured skull and other injuries.

Mrs Pelosi had asked for a “very long” sentence to be given to DePape.

A spokesperson for Mrs Pelosi said that the family “couldn’t be prouder of their Pop and his tremendous courage” on the night of the attack and in testifying in the case.

“Speaker Pelosi and her family are immensely grateful to all who have sent love and prayers over the last eighteen months, as Mr Pelosi continues his recovery,” the spokesperson said in a statement posted on X, formerly Twitter.

Prosecutors had asked the judge for DePape to be given 40 years. He is also facing life imprisonment on separate state charges.

Video of the incident shown during the trial shows DePape, a Canadian citizen who has lived in the US for two decades, breaking into the Pelosi home in California armed with a hammer on 28 October 2022.

DePape asked for Mrs Pelosi, who was not at home, when he confronted the lawmaker’s husband inside the couple’s house.

When police officers arrived after responding to a 911 call, they found Mr Pelosi and DePape both gripping a hammer.

DePape’s court-appointed lawyer, Jodi Linker, argued that her client was motivated by right-wing conspiracy theories, which the defendant believed “with every ounce of his being”.

Prosecutors, however, argued that DePape had a “plan of violence”, noting that he told investigators he had a “target list” and plan to break Mrs Pelosi’s kneecaps if she did not reveal “the truth”. At the time of his arrest, DePape had zip ties and duct tape.

In addition to the federal charges, DePape is facing separate state charges stemming from the attack. They include burglary, assault with a deadly weapon, elder abuse, and attempted murder.

He faces life imprisonment if convicted of those charges. He has pleaded not guilty.