The Barghawatas (or Barghwata, Berghouata) were a Berber tribal confederation and religious movement that ruled a region of the Atlantic coast in present-day Morocco between the 8th and 11th centuries. They belonged to the Masmuda confederacy.
After allying with the Sufri rebellion against the Umayyad Caliphate, they established an independent state (AD 744-1058) in the area of Tamesna on the Atlantic coast between Safi and Salé under the leadership of Tarif al-Matghari.