The epicenter was 6 kilometers (3.73 miles) northeast of Majene at a depth of 10 kilometers.
Thousands of panicked residents fled their homes in search of safety after the earthquake did not sound a tsunami warning. But felt intense for about seven seconds
The disaster relief agency said a hotel and the office of the Governor of Western Sulwezi had suffered severe damage and that electrical equipment was also reduced.
Hours earlier, a magnitude 5.9 earthquake hit the same district on Thursday, which damaged homes.
Indonesia, a country of high tectonic shifting, is a country of frequent seismic activity known as the Ring of Fire in the Pacific Ocean.
In 2018, a 6.2 Richter earthquake and a subsequent tsunami struck Palu in Sulawesi, killing thousands.