The MP/MLA court here has sentenced gangster-turned-politician Mukhtar Ansari to five and a half years of rigorous imprisonment and imposed a fine of Rs 10,000 in the case related to threatening a witness in the coal businessman Nand Kishore Rungta murder case.