A woman died Sunday morning after a fire ripped through a two-story townhouse in Castro Valley, fire officials said.

Heavy smoke and flames engulfed the second story of the home located in the 20000 block of San Miguel Avenue, which sits roughly 100 to 150 feet from a nearby firehouse, according to Ronnie Otis, a Battalion Chief for the Alameda County Fire Department.

"We opened the door and we could smell smoke," Otis said.

After pulling the victim from the fire, emergency responders performed CPR, but their efforts were unsuccessful, Otis said.