Two men were found by police through a "hidden door" next to a property where the "entire building" had been used for the production of more than 500 cannabis plants.
Elian Thana, 27, and Silvio Sakaj, 23, were discovered in a neighbouring building after officers executed a drugs warrant at a property in George Street, Great Yarmouth, at the end of June.
Norwich Crown Court heard Sakaj was found "hiding behind the door" while Thana had been "in plain sight" when police went through the "hidden door".
Oliver Haswell, prosecuting, said the pair - both Albanian nationals of no fixed abode - were discovered after police found no-one at the property where the "entire building had been given over to the production of cannabis".
He said that "from the basement through to the top floor" a total of 515 cannabis plants were discovered.
Also found at the address was a total of 40kg of cannabis in the process of being dried out.
Thana, and Sakaj appeared in court on Tuesday (August 8) having admitted producing cannabis.
Sentencing both Sakaj and Thana to eight months imprisonment Recorder John Hardy said it was "an all too familiar tale".
He said: "Both of you dreamed of prosperity and success but were ensnared by sophisticated criminals who used you to harvest their drugs production".
Ian James, mitigating for Sakaj, said he had come into this country illegally having been told of the prospect of earning money working in the construction industry.
But he said he ended up being conveyed to Yarmouth with debts to be "expunged".
He said he accepted what he had done was wrong.
John Morgans, mitigating for Thana, said his mother had been diagnosed with cancer and he had wanted to find work to support her and his family.
He said the defendant "didn't realise what he was getting himself into" and wanted to apologise.
Comments: Our rules
We want our comments to be a lively and valuable part of our community - a place where readers can debate and engage with the most important local issues. The ability to comment on our stories is a privilege, not a right, however, and that privilege may be withdrawn if it is abused or misused.
Please report any comments that break our rules.
Read the rules hereComments are closed on this article