David Gallacher, 37-year-old man was accused of attacking the mom-to-be by kicking her in the stomach so hard as she walked close to a mosque.
Post that scene, the culprit allegedly attacked a man who tried to interrupt her during the incident near a Co-op store in Milton Keynes, Bucks.
The unnamed Somalian Muslim woman, who is a mother of four, was forced to escape her home in fear as a result of the attack.
She literally had not known she was expecting twins until doctors notifed her that she lost unborn twins after the assault.
Her 40-year-old husband, Abdullah Sulamain has had to call it quits from his job as a taxi driver only to stay home and reassure his traumatised wife.
The judge called the accused a “thug and a racist to boot.”
Aylesbury Crown Court learnt that Somali Ms Haji-Ali was racially abused by Gallacher in the Water Eaton Road shop.
He also swore at her and said: “You come here with your clown outfit on…”
Judge Francis Sheridan said: “She told him she was pregnant and he continued to kick her again, after he was told she was pregnant.
“She is left rolling around on the ground in agony and later found there is bleeding before she lost the baby.”
Judge Sheridan also added that her pregnancy had been “absolutely fine” prior to the attack, and in his view “the loss of that baby was a direct result of a kick to the stomach of a pregnant woman”.
Judge Sheridan told Gallacher: “There was a racial element to this attack.
“The defendant is a shabby racist on the language that he used towards this lady.
“It is time you learnt that your vile conduct and abhorrent views are a thing of the past.”
Gallacher confessed two counts of racially aggravated assault occasioning actual bodily harm and 3 counts of attacking a police officer during his arrest in September last year.
The accused was jailed for three years and seven months for the race attacks and four months for the officer assault.
(With inputs from The Sun).