Kizito Ugo Nwajeri, 31, was linked to the largest seizure of crack cocaine in Scotland with a potential street value of £243,000.
A judge told Nwajeri: "You played a significant role in the large-scale distribution of crack cocaine."
Nwajeri paid Kirsty Birnie £2000 to marry him before flying to Lagos, in Nigeria, for a ceremony.
Ms Birnie, 30, a hospital worker, said she was handed a Bible stuffed with cash during a meeting at a cafe in Aberdeen.
She later flew to the West African country for the marriage.