The woman had provided Adrian Mann, 66, a roof over his head when he became homeless, said Lydia Carroll, prosecuting.
She feared he would kill her as he hit her many times on the head in an unprovoked attack, the court heard.
The onslaught left her with months of medical problems, including a frequently bleeding head injury, and terrified of being at home.
YOU’LL FIND MORE ON THIS STORY AND OTHERS AT www.yorkpress.co.uk OR PICK UP YOUR COPY OF THE NEWSPAPER ITSELF AVAILABLE SIX DAYS A WEEK AT YOUR LOCAL NEWSAGENT