Almost 4000 cannabis plants worth more than $18 million have been found and seized during a raid at a south-east Queensland property, according to police.

Detectives searched a property on Gatton-Esk Road at Buaraba, about 100 kilometres west of Brisbane, on Thursday morning and allegedly uncovered a sophisticated cannabis farm.

The discovery of the cannabis farm was made by detectives from the State Crime Command’s Drug and Serious Crime Group as well as the Gatton Criminal Investigation Branch.

It will be alleged a commercial-sized shed and four industrial-sized greenhouses were found to house 3731 cannabis plants, one kilogram of dried cannabis as well as specialist equipment used in the drug production, including an intricate irrigation system.

The discovery was made as part of an ongoing investigation a, but five men have been charged after Thursday's discovery.

Two of the accused were 42-years-old and detectives also charged a 41-year-old, a 38-year-old and a 62-year-old man.

They will face court on charges of producing dangerous drugs, possessing dangerous drugs and possessing anything used in the commission of a crime.