Police have revoked an emergency declaration in the heart of Maryborough after a major gas leak on Monday morning.

The declaration, under the Public Safety Preservation Act (PSPA), was made after a ruptured gas main was discovered.

Emergency services were called to Kent Street in the Fraser Coast city, 130 kilometres north of the Sunshine Coast, at 11.20am for a major gas leak and cordoned off part of the CBD just after midday.

Motorists and pedestrians were being urged to avoid the exclusion zone encompassing Kent, Adelaide, Lennox, John and Ellena streets as well as the local Woolworths car park.

The exclusion zone for Kent, Adelaide, Lennox, John and Ellena streets and the car park was reopened and the declaration revoked at 3.05pm.

Lennox Street remained closed between Kent and Ellena streets.