SYDNEY, Australia — Wildfires that began in September, consumed millions of acres of forest and burned through beachside towns and suburbs are finally out in most of New South Wales, Australia’s most populous state, emergency services said Friday.

Some fires in the southern part of the state still haven’t been extinguished, said Rob Rogers, the deputy commissioner of the NSW Rural Fire Service, but they are under control.

“All fires are contained, so we can really focus on helping people rebuild,” Mr. Rogers said in a video posted on Twitter.

Fires continue to trouble firefighters in the southeastern state of Victoria, officials said. But torrential rain that has swept much of the eastern coast of Australia over the past week has helped put out many of the last few blazes remaining from a summer of unprecedented fires that obliterated towns, killed as many as half a billion animals and led to the deaths of 11 firefighters, including three Americans.