The epicenter of the quake was six kilometers north of the city of Majene, at a depth of 10 kilometers.
Several thousand residents of panic fled their homes to search for the earthquake safety, which did not trigger a tsunami alert but felt strong for about seven seconds.
The disaster relief agency said a hotel and the office of the West Sulwesi governor were badly damaged, and that the electricity supply was also down.
Hours earlier, a magnitude 5.9 earthquake shook the same district and damaged several homes on Thursday.
Over the so-called Pacific ‘ring of fire’, Indonesia, a country with high tectonic activity, is regularly hit by earthquakes.
In 2018, a devastating earthquake with a magnitude of 6.2 and the ensuing tsunami hit the city of Palu in Sulawesi, killing thousands of people.