Taiwan was hit by an earthquake of 5.7 magnitude on the eastern coast of the island, the government said late on Wednesday night.
The government said the earthquake took place late on Wednesday near Hualien, the same area as a strong quake on Tuesday and where recovery efforts are still ongoing.
The U.S. Geological Survey said the quake was 21 km northeast of the city at a depth of 11 km.
At least seven people were killed and 67 were still missing from the earthquake in the popular tourist city of Hualien as of late Wednesday, the government said in a statement.
At least four midsized buildings in worst-hit Hualien county leaned at sharp angles, their lowest floors crushed into mangled heaps of concrete, glass, iron and other debris. Firefighters climbed ladders hoisted against windows to reach residents inside apartments.
The shifting of the buildings after the magnitude 6.4 quake late Tuesday night was likely caused by soil liquefaction, when the ground beneath a building loses its solidity under stress such as that caused by an earthquake.
A maintenance worker who was rescued after being trapped in the basement of the Marshal Hotel said the force of the earthquake was unusual even for a region used to temblors.
"At first it wasn't that big ... we get this sort of thing all the time and it's really nothing. But then it got really terrifying," the worker, Chen Ming-hui, told Taiwan's official Central News Agency after he was reunited with his son and grandson following the quake. "It was really scary."
Two employees of the hotel were killed in the disaster, CNA said. Taiwan's National Fire Agency said rescuers freed another employee from the rubble.
Other buildings slanted at alarming degrees and rescuers used ladders, ropes and cranes to move residents to safety.
Six people were killed in the quake, while 256 others were injured and 76 unaccounted for, according to the fire agency. CNA reported that seven had been killed.
The force of the tremor buckled roads and disrupted electricity and water supplies to thousands of households, the fire agency said.
Japan's Foreign Ministry said nine Japanese were among the injured. Six mainland Chinese were also injured, the Chinese Communist Party-run People's Daily reported.
Rescuers focused on the Yunmen Tsuiti residential building that was tilted at a nearly 45-degree angle, erecting long steel beams to prevent it from collapsing.
Concrete blocks were laid on the steel rods to anchor them. Half a dozen excavator trucks surrounded the site, where rescue efforts were temporarily suspended because the building was "sliding," according to Taiwan's Central Emergency Operation Center.
More than a hundred rescue workers were around the building, including military personnel and volunteers who were distributing food and hot drinks. Away from the disaster area, the atmosphere in the city was calm as rain beat down on largely deserted streets.
Taiwanese President Tsai Ing-wen moved to reassure the Taiwanese public that every effort would be made to rescue survivors. In a post on her official Facebook page, Tsai said she arrived in Hualien on Wednesday to review rescue efforts.
Tsai said she "ordered search and rescue workers not to give up on any opportunity to save people, while keeping their own safety in mind."
"This is when the Taiwanese people show their calm, resilience and love," she wrote. "The government will work with everyone to guard their homeland."
Bridges and some highways along Taiwan's east coast were closed pending inspections.
With aftershocks continuing to hit after the quake, residents were directed to shelters, including a newly built baseball stadium, where beds and hot food were provided.
Speaking from a crisis center in Taipei, Cabinet spokesman Hsu Kuo-yung said rail links appeared to be unaffected and the runway at Hualien airport was intact.
"We're putting a priority on Hualien people being able to return home to check on their loved ones," Hsu said.
The U.S. Geological Survey said the quake struck just before midnight Tuesday about 21 kilometers (13 miles) northeast of Hualien at a relatively shallow depth of about 10.6 kilometers (6.6 miles).
Taiwan has frequent earthquakes due to its position along the "Ring of Fire," the seismic faults encircling the Pacific Ocean where most of the world's earthquakes occur.
Exactly two years earlier, a magnitude 6.4 quake collapsed an apartment complex in southern Taiwan, killing 115 people. Five people involved in the construction of the complex were later found guilty of negligence and given prison sentences.
A magnitude 7.6 quake in central Taiwan killed more than 2,300 people in 1999.