In the first incident Craig Ashley struck a 50-year-old man from behind before beating him as he lay on the ground during the ordeal in Ballfields, Tipton, in April 2020.
The man suffered a serious head injury and multiple cuts and bruises to his body.
Then in June 2020, Ashley attacked the same man with a hammer, hitting him numerous times all over his body at a property in Tame Road, Tipton.
With all the odds against him, the victim survived, going from intensive care to rehabilitation. And Ashley was arrested.
On Friday, Ashley, of Willingsworth Road, Wednesbury, was sentenced at Wolverhampton Crown Court to 10 years for the assault in June, with two years for the April attack to run concurrently.
The 40-year-old had pleaded guilty days before the trial was due to commence, resulting in some reduction in sentencing of which he will serve two thirds, followed by an indefinite restraining order.
Pc Lisa Ainley, from Force CID, said: “This was a vicious and targeted attack and following extensive investigations, Ashley has now been jailed for his ruthless actions. We hope the sentence will bring some sense of justice to the victim.”