Transform faults are a type of plate boundary where two plates slide past each other horizontally. In this case, the African plate is moving eastward, while the Eurasian plate is moving westward. This movement creates significant stress along the fault line, which can lead to earthquakes.
The specific location of the Morocco earthquake was near the Atlas Mountains, which are a result of the convergence of the African and Eurasian plates. This convergence, while not a direct cause of the earthquake, also contributes to the tectonic instability of the region.