Qatar, a peninsula in Western Asia, does not share a land border with Africa. The shortest distance from Qatar to the African continent is approximately 220 kilometers (137 miles), measured across the Persian Gulf to the island of Abu Musa (administered by the UAE but claimed by Iran), which lies geographically on the African tectonic plate.
The distance to the African mainland (e.g., the coast of Somalia or Djibouti) is significantly greater, roughly 1,000+ km across the Gulf of Aden/Arabian Sea.