A man has died after being stung by a swarm of bees on a farm in country Victoria.

The 30-year-old man came under attack about 10am while working on a property on MacArthur Street, at Dunkeld, in western Victoria.

It is understood the man was working at the property as a gardener.

Worksafe officers attended the scene and a report is being prepared for the coroner.