The quake, which was felt in Havana, saw several high-rises evacuated as a precaution, the emergency service said on Twitter, urging people to "remain calm."
The US Geological Survey reported that a 4.7-magnitude tremor was recorded at a depth of 10 kilometers (six miles) near Candelaria in the Pinar del Rio province, some 70 kilometers west of Havana.
Cuba's own seismological service said the magnitude was 5.1, adding it was the fourth quake to hit the island this year.