It’s a doggone miracle!

Four pit bulls and their mother were rescued after a fire broke out in an apartment in Bismarck, North Dakota.

The small blaze occurred early Monday morning while the dogs’ owners were out, according to the Bismarck Tribune.

Eighteen firefighters rushed to the scene and successfully extinguished the blaze on the third floor of the housing unit, saving the adorable fuzzballs in the process.

“When our guys went in, they found the pups and their mother behind the couch,” Bismarck Fire Marshal Owen Fitzsimmons told The Post. “They scooped them up in a tote.”

The tote bag used to transport the pups was found in the apartment, Fitzsimmons said.

The fire itself was not large, but a report received by the Tribune stated there was a “large amount of smoke.”

There were no reported injuries on the scene, and the cause of the fire was reported as accidental.

The canine clan was collected by the Bismarck Animal Control after the incident.