McKINNEY, Texas (CBSDFW.COM) – Firefighters rescued a woman stranded on the roof of her burning McKinney home after she ran back inside for her cell phone.

It happened in the 6300 block of Avalon Woods Dr. on December 14.

READ MORE: US Supreme Court To Consider Controversial Texas Abortion Law

The woman had helped her mother escape the burning home, before running back inside and getting trapped.

“If a fire breaks out in your home, you have just a few minutes to get out safely,” said McKinney Fire Marshal Mike Smith. “Close doors as you leave and don’t go back inside for any reason.”

READ MORE: Texas Mother And Son Arrested In Wyoming For Murder In Oklahoma

Firefighters used ladders to bring the woman down to safety.

Two people were treated and transported to a local hospital for burns and smoke inhalation.

The cause of the fire is under investigation.

MORE NEWS: Southlake Ranks 20th 'Best Small City In America'; Keller & Flower Mound Most Affordable

MORE FROM CBSDFW