Historically, the word "dirham" is comes from 'dirhem' which comes from the name of a Greek coin, the Drachm; the Byzantine Empire controlled the Levant and traded with Arabia, circulating the coin there in pre-Islamic times and afterward. It was this currency which was first used as an Arab word. Near the end of the 7th century, the coin became an Islamic currency. It had the name of the sovereign and a religious verse on it. The dirham was used by many Mediterranean countries, including Spain. It could be used as currency in Europe between the 10th and 12 centuries.