In the late 18th century , a newly established sultanate in Muscat signed the first in a series of friendship treaties with Britain .