A 56-year-old man has been treated for smoke inhalation after allegedly trying to save his cannabis plants when his hydroponics setup exploded near Bundaberg on Sunday morning.

Firefighters were called to a backyard shed in Elliot Heads, south east of Bundaberg, about 8.40am Sunday, where they found the man trying to remove a number of plants growing in pots inside the shed.

Authorities attend a fire in Elliot Heads, Bundaberg, after an alleged hydroponic cannabis setup went up in flames. Credit:Susie Ross - Seven News Wide Bay

It is believed an electrical fault sparked the blaze.

Police were called and a crime scene was established.

The man was taken to Bundaberg Base Hospital for treatment for smoke inhalation.

Police are expected to formally interview him about the setup upon his discharge from hospital.

Stay informed. Like Brisbane Times on Facebook.