A U.S. District Judge sentenced 46-year-old Frank Salvador Solorza in Oakland last week.
Solorza was arrested in 2009 after he showed up at a San Mateo County home on a child's bike and wearing a clown suit, wig, and pirate hat.
Authorities say Solorza picked up a case he believed contained the $50,000 he demanded from his cousins, who emigrated from Mexico.
Officials say Solorza's scheme included threatening to have them deported for lying on immigration papers if they didn't pay up. He apparently wore the disguise to protect his identity from them.
The San Francisco Chronicle reports a federal jury convicted Solorza of conspiracy, impersonating an immigration officer and attempted extortion.