A nursing home at Warwick was directly hit by lightning last night which blew out windows and sent a tree crashing through a wall.

Emergency crews were called to the Blue Care home on Law Road at about 9.20pm after the strike caused significant damage.

Frightened elderly residents were evacuated to a large room at the back of the facility, but fire crews discovered a tree had collapsed through the wall.

Residents were then taken to another safe spot while crews worked to patch up the building.

The lightning strike caused significant structural damage, a Queensland Fire and Rescue Service spokesman said.

A roller door was smashed in, fences blown down and the building's windows and doors shattered.

The excitement was too much for two patients, who were taken to Warwick Base Hospital as a precaution.

The clean-up operation will continue this morning.