Fire Scotland crews from across the area worked to protect properties after a blaze took hold of a large section of gorse and moorland between Milton of Leys and Deviot Woods.
Local residents were advised to stay in their homes to protect themselves from the smoke.
The majority of the blaze was extinguished by around 7.45pm but fire crews remained on site to extinguish residual small hotspots.
Group manager Robert Scott, the incident commander, said: "I would like to praise the magnificent efforts of all our crews, who prevented any spread of the fire to homes and the neighbouring Drummossie Muir Forest.
"I would also like to extend my great thanks to our colleagues from Police Scotland and the Forestry Commission for their support, as well as members of the public from the local area for their patience and fortitude during this incident.
"This incident highlights the danger wildfires pose to communities across the north of Scotland at the present time.
"We of course urge anyone who is enjoying the outdoors this weekend to recognise the risks and help prevent wildfires."